Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 1.12 KB

File metadata and controls

12 lines (7 loc) · 1.12 KB

OrderCreateV1Req

Asset allocation optimization order request. **The array elements of from and to are both CreateParam, and the fields are asset + amount. ** There is no ratio field; if you copy parameters from the preview interface, you must convert the to[].ratio in the preview into the to[].amount required for placing an order (according to the product agreement, usually based on the order details returned by the preview, etc.). The ratio string cannot be directly reused as amount.

Properties

Name Type Description Notes
from List<CreateParam> Sell ​​side list, at least one item; each item is the currency and amount `amount` to be swapped out.
to List<CreateParam> Target side list, at least one item; each item is the target currency and amount `amount` (non-proportional). The structural semantics are different from `OrderPreviewV1Req.to` (`PreviewToParam`, including `ratio`), so do not mix them.