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
WalletandOrderpair 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
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
wallet | query | Wallet | true | The wallet to use for signing the transaction. |
order | query | Order | true | The order to place. |
tx_options | query | TxOptions | false | Options for transaction to support authenticators. |
Response
| Status | Meaning | Schema | |
|---|---|---|---|
200 | OK | TxHash | |
400 | Bad Request | The request was malformed or invalid. |
Examples: Python | TypeScript | Rust | Guide - Place an order