API
1.Create DCA order
request:
Method: POST
response:
2.Cancel DCA order
request
Method: post
Parameters:
parameter | type | example | description |
chainId | number | 8453 | chain id (8453) |
orderHash | string | 0x1e48... | wallet address |
request body:
response
3.Get DCA order by address
Method: get
Parameters:
parameter | type | example | description |
chainId | number | 8453 | chain id (8453) |
address | string | 0x6ce8... | wallet address |
statuses | array? | [1,3,4] | statuses code: 1-unfill, 3-cancel, 4-filled, 5-pending, 6- hash not exist, 7-expire, default [1,3,4] |
limit | number? | 10 |
Example:
request:
response:
4.Get all DCA orders
Method: get
Parameters:
parameter | type | example | description |
chainId | number | 8453 | chain id (8453) |
statuses | array? | [1,3,4] | statuses code: 1-unfill 3-cancel or expire 4-filled, default [1,3,4] |
limit | number? | 10 |
Example:
request:
response:
Last updated