Create DCA
Method:
Near Call
create_dca
Params
Name | Type | Description |
---|---|---|
| string | Name of the DCA |
| AccountId | Sell Token |
| AccountId | Buy Token |
| U128 | Number of single executions |
| u64 | millisecond, for example: 1729580505000 |
| u64 | millisecond, for example: 60000(1minute) |
| u16 | dca execution times |
| u64 | lowest execution price, price = token_in / token_out |
| u64 | highest execution price, price = token_in / token_out |
| u16 | ref's slippage during swap, min:10, max:10000; 10->0.1% |
Near Cli
deposit 0.02Near: Mainly used for storage, excess will be returned directly
Event
Name: create_dca
Event Body:
DCA ID will be returned on Event.
Last updated