Create an order
POST
/ordersCreate a LIMIT or MARKET order
Request
Body Params application/json
data
object
required
pricePerShare
string
required
A numeric string for the price per share
strategy
enum<string>
required
Allowed values:
LIMITMARKET
slippageBps
string
optional
a non empty string
>= 1 characters
order
object
required
Example
{
"data": {
"pricePerShare": "string",
"strategy": "LIMIT",
"slippageBps": "string",
"order": {
"hash": "string",
"salt": "string",
"maker": "string",
"signer": "string",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "string",
"makerAmount": "string",
"takerAmount": "string",
"expiration": "string",
"nonce": "string",
"feeRateBps": "string",
"side": 0,
"signatureType": 0,
"signature": "string"
}
}
}
Request samples
Responses
Created(201)
HTTP Code: 201
Content Type : JSONapplication/json
Response 201
Data Schema
success
boolean
required
a boolean
data
object
required
code
enum<string>
required
Allowed value:
OK
Example
{
"success": true,
"data": {
"code": "OK"
}
}
Last modified: 11 days ago