Create Order
POST
https://api.sfox.com/v1/orders/:side
Create an order.
Create order requests are rate limited to 60 requests per second per account.
Path Parameters
Parameter | Type | Description |
---|---|---|
| string | Possible values: |
Body Parameters
Parameter | Type | Description |
---|---|---|
| string | Pair or product to trade in the format |
| int | Order type / algorithm.
|
| string | Order limit price.
|
| string | Order size in base currency quantity.
|
| string | The amount (quote currency) to spend when buying. Required when placing BUY orders using: Market ( |
| string | Optional field for a user-specified ID.
|
| string | For executing on an RFQ, the |
| string | Time in force (TIF) specifies how the lifetime of your order will be handled. Possible values:
|
| number | A risk management parameter that will limit the slippage of an order in basis points (e.g. setting |
| date-time | Specify the expiration date time of your order (UNIX timestamp in ms). Required for orders with |
| string | Route the order to a specific destination. Possible values:
|
| int | The time, in seconds, that a TWAP ( |
| int | The frequency, in seconds, that slices of a TWAP ( |
| boolean | TWAP ( |
| boolean | TWAP ( |
| number | Set the amount (quote currency) that the trigger price of a trailing stop order will trail the price of an asset. Trailing Stop ( |
| number | Percentage that the trigger price of a trailing stop order will trail the price of an asset (e.g. |
| int | Turn your order into an STO (Stop-Triggers-Other) or TSTO (Trailing-Stop-Triggers-Other) order: Trigger placement of an order type of your choosing at a certain price or based on a trailing amount/percent. e.g. when price reaches $100 trigger a 1-hour TWAP. Possible values:
|
| number | Trigger price of an STO (Stop-Triggers-Other) order. Required if |
| number | Trailing amount (quote currency) of a TSTO (Trailing-Stop-Triggers-Other) order. Required if |
| number | Specify the trailing percent of a TSTO (Trailing-Stop-Triggers-Other) order (e.g. |
| string | Specify how sFOX will trade your order. Routing Options:
|
Responses
Example Requests
Last updated