API
1.Create DCA order
request:
Method: POST
If you are willing to set a platform fee on your end, you could include the params of "referrer
" &"referrerFee
" shown in above example. It only applies to DCA V2 version.
referrer
is an EOA address to add. It is used for to collect the fee you charged. Meanwhile, it could help us to track data flow from your end.referrerFee
is the number set to charge, e.g. "1" is equal to "1%". OpenOcean will take 15% of the platform fee charge as default. If you are not willing to charge, you could either set it as 0 or not include the params.
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