API for the DeFi Service
- Execute a transfer
DeFi Service API (v2026_01_14)
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/
http://localhost:7072/
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/balances
- Local server
http://localhost:7072/v1/defi/core/balances
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/balances?evm=false' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "balances": [ { … } ] }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/quote
- Local server
http://localhost:7072/v1/defi/core/quote
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/quote \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"chain": "string",
"base_asset": "string",
"quote_asset": "string",
"order_side": "buy",
"qty": "string"
}'{ "quote_id": "string", "base_asset": "string", "quote_asset": "string", "order_side": "string", "amount": "string", "fee": "string", "payloads": [ { … } ], "issues": [ "string" ] }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/trade
- Local server
http://localhost:7072/v1/defi/core/trade
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/trade \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"signed_payloads": [
{
"payload": "string",
"signature": "string",
"auth_type": "web_authn"
}
]
}'{ "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe" }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/transfer/prepare
- Local server
http://localhost:7072/v1/defi/core/transfer/prepare
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/transfer/prepare \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"chain": "string",
"asset": "string",
"to": "string",
"qty": "string",
"qty_unit": "base"
}'{ "transfer_id": "d4a2d8dd-7def-4545-a062-761683b9aa05", "payloads": [ { … } ] }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/transfer/execute
- Local server
http://localhost:7072/v1/defi/core/transfer/execute
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/transfer/execute \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"transfer_id": "d4a2d8dd-7def-4545-a062-761683b9aa05",
"signatures": [
"string"
],
"auth_type": "web_authn"
}'{ "tx_hash": "string", "chain": "string", "asset": "string", "from": "string", "to": "string", "sent": "string", "fee": "string", "received": "string" }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/create-wallet
- Local server
http://localhost:7072/v1/defi/core/create-wallet
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/create-wallet \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"passkey": {
"challenge": "string",
"credential_id": "string",
"client_data": "string",
"attestation": "string"
},
"api_key": {
"public_key": "string"
}
}'{ "wallets": [ { … } ] }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/wallet/export/prepare
- Local server
http://localhost:7072/v1/defi/core/wallet/export/prepare
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/wallet/export/prepare \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"address": "string",
"target_public_key": "string"
}'{ "payload": "string" }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/wallet/export/execute
- Local server
http://localhost:7072/v1/defi/core/wallet/export/execute
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/wallet/export/execute \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"address": "string",
"target_public_key": "string",
"payload": "string"
}'{ "export_bundle": "string" }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/profile/me
- Local server
http://localhost:7072/v1/defi/core/profile/me
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/profile/me \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "id": "string", "email": "user@example.com", "wallets": [ { … } ] }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/assets
- Local server
http://localhost:7072/v1/defi/core/assets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/assets?evm=false'[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "chain": "string", "address": "string", "symbol": "string", "name": "string", "slug": "string", "decimals": 0, "description": "string", "website": "string", "icon": "string", "is_active": true, "tradeable": true, "stable": true, "image": { … }, "market_data": { … }, "socials": { … } } ]
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/asset/{chain}/{address}
- Local server
http://localhost:7072/v1/defi/core/asset/{chain}/{address}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/asset/{chain}/{address}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "chain": "string", "address": "string", "symbol": "string", "name": "string", "slug": "string", "decimals": 0, "description": "string", "website": "string", "icon": "string", "is_active": true, "tradeable": true, "stable": true, "image": { "thumb": "string", "small": "string", "large": "string" }, "market_data": { "circulating_supply": 0, "total_supply": 0, "max_supply": 0 }, "socials": { "x_username": "string", "facebook_username": "string", "subreddit_url": "string", "official_forum_url": "string" } }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/watchlists
- Local server
http://localhost:7072/v1/defi/core/watchlists
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/watchlists[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "title": "string", "description": "string" } ]
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/watchlists/{id}
- Local server
http://localhost:7072/v1/defi/core/watchlists/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/watchlists/{id}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "title": "string", "description": "string", "assets": [ { … } ] }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/history
- Local server
http://localhost:7072/v1/defi/core/history
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/history?limit=50&cursor=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "items": [ { … } ], "next_cursor": "2019-08-24T14:15:22Z" }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/onramp
- Local server
http://localhost:7072/v1/defi/core/onramp
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/onramp \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"chain": "solana",
"amount": "string",
"payment_method": "string"
}'{ "url": "string", "tx_id": "string" }
- Mock server
https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/onramp/transactions/{id}/status
- Local server
http://localhost:7072/v1/defi/core/onramp/transactions/{id}/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.truemarkets.co/_mock/apis/defi/v2026_01_14/v1/defi/core/onramp/transactions/{id}/status' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "tx_status": "string" }