Skip to content

Place Order

Execute a transaction that places an order on a market. This function takes parameters for wallet authentication, various order details, and optional transaction options to manage specific order types and behaviors.

Method Declaration

Python
async def place_order(
    self,
    wallet: Wallet,
    order: Order,
    tx_options: Optional[TxOptions] = None,
)
Unification Plan
  • Use a convenient Wallet and Order pair for all clients
  • TypeScript doesn't use authenticators
  • In Python we use them explicitly
  • Consider to do the same like in Rust (set it automatically)

Parameters

ParameterLocationTypeRequiredDescription
walletqueryWallettrueThe wallet to use for signing the transaction.
orderqueryOrdertrueThe order to place.
tx_optionsqueryTxOptionsfalseOptions for transaction to support authenticators.

Response

StatusMeaningSchema
200OKTxHash
400Bad RequestThe request was malformed or invalid.

Examples: Python | TypeScript | Rust | Guide - Place an order