Create Auto-Conversion
Creates an auto-conversion rule for a member: what arrives on dchain_from is converted into asset_to.
POST
/api/auto_conversionsAuth: RequiredRequest Body
member_idnumberRequiredThe member the operation is for.
dchain_fromstringRequiredSource dchain id
asset_tostringRequiredTarget asset code
Response
The rule, with the address it created.
idnumberRequiredThe rule id.
member_idnumberRequiredThe member the rule belongs to.
asset_from_idstringRequiredThe asset that arrives.
dchain_from_idstringRequiredThe network it arrives on.
asset_to_idstringRequiredThe asset it is converted into.
updated_atstringRequiredWhen the record last changed.
created_atstringRequiredWhen the record was created.
deposit_addressobjectRequiredThe address to be paid at. Funds arriving here are converted into asset_to_id.
Errors
Beyond the shared errors:
| Code | Meaning |
|---|---|
1001 | member_id is invalid or not yours, or dchain_from is not a known network |
2024 | There is no market for the conversion pair |
2020 | This member has reached its deposit-address limit. A rule creates its own deposit address, so it counts against the same limit |