Spot Trading
Create market order
The endpoint creates a market trading order. The matching engine executes the order immediately at the best available price. For buy orders, amount represents the total in quote (money) currency to spend. For sell orders, amount represents the quantity in base (stock) currency to sell. Minimum and maximum values are market-dependent. Query GET /api/v4/public/markets for minAmount, minTotal, and maxTotal.
<Warning> Rate limit: 10000 requests/10 sec. </Warning> <Accordion title="Error Codes"> - `30` - default validation error code - `31` - market validation failed - `32` - amount validation failed - `36` - clientOrderId validation failed </Accordion> <Accordion title="Errors">post/api/v4/order/market
Request
- Base URLhttps://whitebit.com
- AuthAPI key in header X-TXC-APIKEY and API key in header X-TXC-PAYLOAD and API key in header X-TXC-SIGNATURE
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Changes
No recorded changes to this operation across all 1 revision of this API.