Create OTC Quote
POST/private/CreateOtcQuoteRequest
Creates a new OTC request for quote.
API Key Permissions Required: Orders and trades - Create & modify orders
Request
- application/json
Body
required
nonce int64required
Nonce used in construction of API-Sign
header
base stringrequired
The asset you want to buy or sell (e.g., BTC, ETH).
quote stringrequired
The asset used to price the base asset (e.g., USD, USDT).
amount string
The quantity of base asset you want to trade. Cannot be used together with the total field.
total string
The total amount of quote asset you want to spend (for buy orders) or receive (for sell orders). Cannot be used together with the amount field.
type stringrequired
Possible values: [buy
, sell
]
The direction of the trade. Use 'buy' to purchase the base asset with the quote asset, or 'sell' to sell the base asset for the quote asset.
Responses
- 200
- 500
Create OTC quote result.
- application/json
- Schema
- Example (from schema)
Schema
result object
quote objectrequired
Quote created
error string[]required
{
"result": {
"quote": {}
},
"error": [
"EGeneral:Invalid arguments"
]
}
Internal Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string[]
{
"error": [
"EGeneral:Invalid arguments"
]
}
{
"errors": [
{
"field": null,
"value": null,
"type": "Internal Error",
"msg": "Internal error",
"severity": "E",
"errorClass": "General"
}
]
}
Loading...