Download OpenAPI specification:
{- "available_products": [
- {
- "product_code": "growth_account_btc",
- "product_name": "Growth Account BTC",
- "offering": [
- {
- "asset_id": "BTC",
- "historical_performance": [
- {
- "period_type": "days",
- "period_value": 1,
- "period_pnl_percent": "0.001944",
- "period_apy_percent": "0.76"
}, - {
- "period_type": "days",
- "period_value": 7,
- "period_pnl_percent": "-0.001944",
- "period_apy_percent": "-0.76"
}, - {
- "period_type": "days",
- "period_value": 30,
- "period_pnl_percent": "0.586475",
- "period_apy_percent": "7.61"
}, - {
- "period_type": "days",
- "period_value": 90,
- "period_pnl_percent": "1.780027",
- "period_apy_percent": "7.61"
}
]
}
]
}
]
}[- {
- "id": "USDC",
- "name": "USD Сoin",
- "precision": 4
}, - {
- "id": "DAI",
- "name": "Dai",
- "precision": 4
}, - {
- "id": "BTC",
- "name": "Bitcoin",
- "precision": 8
}, - {
- "id": "ETH",
- "name": "Ethereum",
- "precision": 8
}, - {
- "id": "USDT",
- "name": "Tether",
- "precision": 4
}
]| product_code required | string |
| asset_id required | string |
| apikey required | string |
{- "addresses": [
- {
- "product_code": "growth_account_usdc",
- "asset_id": "USDT",
- "address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3"
}
]
}| product_code | string Filter balances by product code. If not specified, returns balances for all products |
| apikey required | string |
{- "products": [
- {
- "product_code": "growth_account_usdc",
- "balances": [
- {
- "asset_id": "USDC",
- "available_for_withdrawal": "1076142.13",
- "total_balance": "1076142.13",
- "last_pnl_date": "2022-12-10T09:30:00Z",
- "total_pnl_amount": "76142.13",
- "total_pnl_percent": "7.61",
- "historical_performance": [
- {
- "period_type": "days",
- "period_value": 1,
- "period_pnl_amount": "19.44078428",
- "period_pnl_percent": "0.001944",
- "period_apy_percent": "0.76"
}, - {
- "period_type": "days",
- "period_value": 7,
- "period_pnl_amount": "-19.44078428",
- "period_pnl_percent": "-0.001944",
- "period_apy_percent": "-0.76"
}, - {
- "period_type": "days",
- "period_value": 30,
- "period_pnl_amount": "5865.74629236",
- "period_pnl_percent": "0.586475",
- "period_apy_percent": "7.61"
}, - {
- "period_type": "days",
- "period_value": 90,
- "period_pnl_amount": "17800.27348218",
- "period_pnl_percent": "1.780027",
- "period_apy_percent": "7.61"
}
]
}
]
}
]
}| apikey required | string |
| amount required | string |
| destination_address required | string |
| external_tx_id | string |
| asset_id required | string Id of the asset, refer to response from /asset endpoint |
| product_code required | string Product code for the withdrawal |
{- "amount": "100000.0",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "external_tx_id": "string",
- "asset_id": "USDT",
- "product_code": "growth_account_usdt"
}{- "id": "string",
- "status": "TRANSFERRED_OUT",
- "client_id": "clientid-1234567890",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "note": "string",
- "external_tx_id": "string",
- "asset_id": "USDC",
- "product_code": "growth_account_usdc",
- "requested_amount": "100000.0",
- "received_amount": "100000.0",
- "net_amount": "100000.0",
- "fee_amount": "0.0",
- "created_at": "2022-06-12T19:27:12.895815Z",
- "modified_at": "2022-06-16T09:45:43.896465Z",
- "txhash": "string",
- "txhash_url": "string",
- "transaction_type": "WITHDRAW"
}Transaction list on ogranization level does not include transactions for individual sub-clients. Use this operation to check status of in-progress withdrawal requests.
| product_code | string Filter transactions by product code. If not specified, returns transactions for all products |
| transaction_id | string |
| skip | integer Specify how many transactions to skip starting from the first one |
| take | integer Specify how many transactions to take |
| asset_id | string |
| apikey required | string |
{- "products": [
- {
- "product_code": "growth_account_usdc",
- "transactions": [
- {
- "id": "string",
- "status": "SUCCESS",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "note": "string",
- "external_tx_id": "string",
- "asset_id": "USDC",
- "created_at": "2022-12-10T09:30:00Z",
- "modified_at": "2022-12-10T09:30:00Z",
- "txhash": "string",
- "txhash_url": "string",
- "transaction_type": "WITHDRAW",
- "fee_amount": "0.0",
- "requested_amount": "100000.0",
- "received_amount": "100000.0",
- "net_amount": "100000.0"
}
]
}, - {
- "product_code": "growth_account_btc",
- "transactions": [
- {
- "id": "string",
- "status": "SUCCESS",
- "destination_address": "bc1qu3qwchkeq4fsycufq3gzua6w2kffyx5lux7kuf",
- "note": "string",
- "external_tx_id": "string",
- "asset_id": "BTC",
- "created_at": "2022-12-10T09:30:00Z",
- "modified_at": "2022-12-10T09:30:00Z",
- "txhash": "string",
- "txhash_url": "string",
- "transaction_type": "DEPOSIT",
- "fee_amount": "0.0",
- "requested_amount": "1.0",
- "received_amount": "1.0",
- "net_amount": "1.0"
}
]
}
]
}| asset_id required | string Id of the asset, refer to response from /asset endpoint |
| product_code required | string |
| txhash required | string |
| amount required | string |
| tx_timestamp required | string <date-time> |
{- "asset_id": "USDC",
- "product_code": "growth_account_usdc",
- "txhash": "string",
- "amount": "150000.0",
- "tx_timestamp": "2018-02-10T09:30:00Z"
}[- {
- "field_name": "asset_id",
- "error_details": [
- {
- "message": "Currency with code <invalid_asset_id> does not exist.",
- "code": "not_found"
}
]
}
]| amount required | string |
| destination_address required | string |
| external_tx_id | string |
| asset_id required | string Id of the asset, refer to response from /asset endpoint |
| product_code required | string Product code for the withdrawal |
{- "amount": "100000.0",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "external_tx_id": "string",
- "asset_id": "USDT",
- "product_code": "growth_account_usdt"
}{- "requested_amount": "string",
- "received_amount": "string",
- "net_amount": "string",
- "fee_amount": "string",
- "withdrawal_status": "Success",
- "message": "string"
}Reserve account can be used only in conjunction with sub-accounts. Reserve account cannot be used for organization-level deposits.
required | Array of objects (Root Type for Allocation) |
{- "allocations": [
- {
- "client_id": "clientid-1234567890",
- "allocation_type": "EARN_ACCOUNT",
- "asset_id": "USDT",
- "amount": "1450.0"
}, - {
- "client_id": "clientid-1234567890",
- "allocation_type": "EARN_ACCOUNT",
- "asset_id": "USDC",
- "amount": "1450.0"
}
]
}{- "error": { },
- "status": "success",
- "remaining_reserve_balances": [
- {
- "asset_id": "USDT",
- "balance": "1450.92"
}, - {
- "asset_id": "BTC",
- "balance": "2.02"
}
]
}Reserve account can be used only in conjunction with sub-accounts. Reserve account cannot be used for organization-level deposits.
| asset_id required | string |
| apikey required | string |
[- {
- "product_code": "growth_account_usdc",
- "asset_id": "USDT",
- "address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3"
}
]Reserve account can be used only in conjunction with sub-accounts. Reserve account cannot be used for organization-level deposits.
| apikey required | string |
[- {
- "asset_id": "USDT",
- "balance": "1500.0"
}, - {
- "asset_id": "USDC",
- "balance": "1000.0"
}
]| apikey required | any |
| client_id required | string Unique client ID from the system requesting to create the earn client |
required | Array of objects (Root Type for WithdrawalWallet) |
| first_name | string First name of the client. Used in client searches. |
| last_name | string Last name of the client. Used in client searches. |
{- "client_id": "clientid-1234567890",
- "first_name": "John",
- "last_name": "Smith",
- "withdrawal_wallets": [
- {
- "address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "asset_id": "USDT"
}, - {
- "address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "asset_id": "USDC"
}
]
}{- "withdraw_address_change_authorization_key": "#&AgY92a^Z$39d"
}Use this operation to check on the status of the in-progress withdrawal requests.
| client_id required | string |
| product_code | string Filter transactions by product code. If not specified, returns transactions for all products |
| take | integer Specify how many transactions to take |
| skip | integer Specify how many transactions to skip starting from the first one |
| asset_id | string |
| apikey required | string |
{- "products": [
- {
- "product_code": "growth_account_usdc",
- "transactions": [
- {
- "id": "string",
- "status": "SUCCESS",
- "client_id": "clientid-1234567890",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "note": "string",
- "external_tx_id": "string",
- "asset_id": "USDC",
- "created_at": "2022-12-10T09:30:00Z",
- "modified_at": "2022-12-10T09:30:00Z",
- "txhash": "string",
- "txhash_url": "string",
- "transaction_type": "WITHDRAW",
- "fee_amount": "0.0",
- "requested_amount": "100000.0",
- "received_amount": "100000.0",
- "net_amount": "100000.0"
}
]
}, - {
- "product_code": "growth_account_usdt",
- "transactions": [
- {
- "id": "string",
- "status": "SUCCESS",
- "client_id": "clientid-1234567890",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "note": "string",
- "external_tx_id": "string",
- "asset_id": "USDT",
- "created_at": "2022-12-10T09:30:00Z",
- "modified_at": "2022-12-10T09:30:00Z",
- "txhash": "string",
- "txhash_url": "string",
- "transaction_type": "DEPOSIT",
- "fee_amount": "0.0",
- "requested_amount": "100000.0",
- "received_amount": "100000.0",
- "net_amount": "100000.0"
}
]
}
]
}| apikey required | string |
| amount required | string |
| destination_address required | string |
| external_tx_id | string Transaction id passed to Coinchange by an external system in the original withdrawal request. |
| asset_id required | string Id of the asset, refer to response from /asset endpoint |
| client_id required | string Client id provided to Coinchange when client was initially created by external system |
| product_code required | string Product code for the withdrawal |
{- "amount": "100000.0",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "external_tx_id": "string",
- "asset_id": "USDT",
- "client_id": "clientid-1234567890",
- "product_code": "growth_account_usdt"
}{- "id": "string",
- "status": "TRANSFERRED_OUT",
- "client_id": "clientid-1234567890",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "note": "string",
- "external_tx_id": "string",
- "asset_id": "USDC",
- "product_code": "growth_account_usdc",
- "requested_amount": "100000.0",
- "received_amount": "100000.0",
- "net_amount": "100000.0",
- "fee_amount": "0.0",
- "created_at": "2022-06-12T19:27:12.895815Z",
- "modified_at": "2022-06-16T09:45:43.896465Z",
- "txhash": "string",
- "txhash_url": "string",
- "transaction_type": "WITHDRAW"
}| client_id required | string |
| product_code required | string |
| asset_id required | string |
| apikey required | string |
{- "addresses": [
- {
- "product_code": "growth_account_usdc",
- "asset_id": "USDT",
- "address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3"
}
]
}This operation completely replaces all previous wallets with the provided ones.
| apikey required | any |
| authorization_key required | string |
required | Array of objects (Root Type for WithdrawalWalletsWithCurrency) |
| client_id required | string |
{- "authorization_key": "KSIiw3!ioj@4adsmDOIJ3",
- "client_id": "clientid-1234567890",
- "currencies": [
- {
- "currency": "USDC",
- "withdrawal_wallets": [
- "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3"
]
}, - {
- "currency": "BTC",
- "withdrawal_wallets": [
- "bc1qu3qwchkeq4fsycufq3gzua6w2kffyx5lux7kuf"
]
}
]
}[- {
- "field_name": "client_id",
- "error_details": [
- {
- "message": "Client with ID 'invalid-client' does not exist.",
- "code": "not_found"
}
]
}
]| client_id required | string |
| product_code | string Filter balances by product code. If not specified, returns balances for all products |
| apikey required | string |
{- "products": [
- {
- "product_code": "growth_account_usdc",
- "balances": [
- {
- "asset_id": "USDC",
- "available_for_withdrawal": "1076142.13",
- "total_balance": "1076142.13",
- "last_pnl_date": "2022-12-10T09:30:00Z",
- "total_pnl_amount": "76142.13",
- "total_pnl_percent": "7.61",
- "historical_performance": [
- {
- "period_type": "days",
- "period_value": 1,
- "period_pnl_amount": "19.44078428",
- "period_pnl_percent": "0.001944",
- "period_apy_percent": "0.76"
}, - {
- "period_type": "days",
- "period_value": 7,
- "period_pnl_amount": "-19.44078428",
- "period_pnl_percent": "-0.001944",
- "period_apy_percent": "-0.76"
}, - {
- "period_type": "days",
- "period_value": 30,
- "period_pnl_amount": "5865.74629236",
- "period_pnl_percent": "0.586475",
- "period_apy_percent": "7.61"
}, - {
- "period_type": "days",
- "period_value": 90,
- "period_pnl_amount": "17800.27348218",
- "period_pnl_percent": "1.780027",
- "period_apy_percent": "7.61"
}
]
}
]
}
]
}| asset_id required | string Id of the asset, refer to response from /asset endpoint |
| product_code required | string |
| txhash required | string |
| amount required | string |
| tx_timestamp required | string <date-time> |
| client_id required | string Client id provided to Coinchange when client was initially created by external system |
{- "asset_id": "USDC",
- "product_code": "growth_account_usdc",
- "txhash": "string",
- "amount": "150000.0",
- "tx_timestamp": "2022-02-10T09:30:00Z",
- "client_id": "clientid-1234567890"
}[- {
- "field_name": "client_id",
- "error_details": [
- {
- "message": "Client with ID 'invalid-client' does not exist.",
- "code": "not_found"
}
]
}
]| amount required | string |
| destination_address required | string |
| external_tx_id | string Transaction id passed to Coinchange by an external system in the original withdrawal request. |
| asset_id required | string Id of the asset, refer to response from /asset endpoint |
| client_id required | string Client id provided to Coinchange when client was initially created by external system |
| product_code required | string Product code for the withdrawal |
{- "amount": "100000.0",
- "destination_address": "0xD2c6ADc7E90f29442e458F90958ed8731AC1f2A3",
- "external_tx_id": "string",
- "asset_id": "USDT",
- "client_id": "clientid-1234567890",
- "product_code": "growth_account_usdt"
}{- "requested_amount": "string",
- "received_amount": "string",
- "net_amount": "string",
- "fee_amount": "string",
- "withdrawal_status": "Success",
- "message": "string"
}