API
Last updated
Last updated
Create limit order
POST
https://open-api.openocean.finance/v1/:chainId/limit-order
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
POST
https://open-api.openocean.finance/v1/:chainId/limit-order/cancelLimitOrder
GET
https://open-api.openocean.finance/v1/:chainId/limit-order/all
GET
https://open-api.openocean.finance/v1/:chainId/limit-order/address/:address
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
chainId*
Number
1, 56, 137, 250, 43114, 42161, 10, 128, 1285, 100, 66, 25, 324, 59144, 8453, 1666600000
getTakerAmount*
String
from data
predicate*
String
from data
getMakerAmount*
String
from data
interaction
String
default: '0x'
allowedSender
String
default: '0x0000000000000000000000000000000000000000'
receiver
String
default: orderMaker
takerAsset*
String
from data, token address
makerAsset*
String
from data, token address
salt*
String
from data
data*
Object
from sdk
amountRate*
Number
makerAmount / takerAmount
expireTime*
String
limit order expire time
isActive*
Boolean
true or false
remainingMakerAmount*
String
same with makerAmount
orderMaker*
String
wallet address
orderHash*
String
from sdk
signature*
String
from sdk
takerAmount*
String
amount with decimals
makerAmount*
String
amount with decimals
chainId*
Number
1, 56, 137, 250, 43114
orderHash*
String
from dsk
chainId*
number
1, 56, 137, 250, 43114
statuses
String
eg: [1,2,3], 1-unfill, 2-fail, 3-cancel, 4-filled, 5-pending, 6- hash not exist, 7-expire
limit
number
limit count
chainId*
number
1, 56, 137, 250, 43114
statuses
String
eg: [1,2,3], 1-unfill, 2-fail, 3-cancel, 4-filled, 5-pending, 6- hash not exist, 7-expire
limit
number
limit count
address*
String
user's wallet address