post
https://api.jetstream.trade/v1/trading/batch-actions
This endpoint is designed to execute a batch of actions optimistically. If any action in the batch fails, the remaining actions will still be executed.
Batching actions reduces the number of blockchain transactions, which in turn lowers fees spending.
Actions
create_orderreduce_orderreplace_ordercancel_orderatomic_orderscancel_all_ordersclose_all_orders_and_positions
Response Codes
| Code | Description | Status |
|---|---|---|
| 201 | Successfully created | success |
| 422 | Order was rejected by the protocol | rejected |
| 409 | A conflict occurred, typically due to an existing order with the same customer order ID | rejected |
| 500 | Unexpected errors or blockchain node malfunction | unknown |
Cost
Each request to this endpoint costs 1 API credit