API
1.Create DCA order
POST
https://open-api.openocean.finance/v1/:chainId/dca/swap
Path Parameters
chainId*
number
8453, 146, 80094
Example
url:
https://open-api.openocean.finance/v1/8453/dca/swap
body
response
2.Cancel DCA order
POST
https://open-api.openocean.finance/v1/:chainId/dca/cancel
Path Parameters
chainId*
number
8453, 146, 80094
Request Body
orderHash*
string
orderHash from sdk
Example
url:
https://open-api.openocean.finance/v1/8453/dca/cancel
body
response
3.Get DCA order by address
GET
https://open-api.openocean.finance/v1/:chainId/dca/address/:address
Path Parameters
chainId*
number
8453, 146, 80094
address*
string
wallet address
Query Parameters
statuses
array
status code: 1-unfill, 3-cancel, 4-filled, 5-pending, 6- hash not exist, 7-expire, default [1,3,4]
limit
number
limit count
4.Get all DCA orders
GET
https://open-api.openocean.finance/v1/:chainId/dca/all
Path Parameters
chainId
number
8453, 146, 80094
Query Parameters
statuses
array
status code: 1-unfill, 3-cancel, 4-filled, 5-pending, 6- hash not exist, 7-expire, default [1,3,4]
limit
number
limit count
Last updated