Skip to main content

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: Required

Request Body​

member_idnumberRequired

The member the operation is for.

dchain_fromstringRequired

Source dchain id

asset_tostringRequired

Target asset code

Response​

The rule, with the address it created.

idnumberRequired

The rule id.

member_idnumberRequired

The member the rule belongs to.

asset_from_idstringRequired

The asset that arrives.

dchain_from_idstringRequired

The network it arrives on.

asset_to_idstringRequired

The asset it is converted into.

updated_atstringRequired

When the record last changed.

created_atstringRequired

When the record was created.

deposit_addressobjectRequired

The address to be paid at. Funds arriving here are converted into asset_to_id.

Errors​

Beyond the shared errors:

CodeMeaning
1001member_id is invalid or not yours, or dchain_from is not a known network
2024There is no market for the conversion pair
2020This member has reached its deposit-address limit. A rule creates its own deposit address, so it counts against the same limit