Skip to content

True Markets DeFi REST (v2026_01_14)

API for the True Markets DeFi service

Download OpenAPI description
Languages
Servers
Mock server

https://docs.truemarkets.co/_mock/apis/defi-direct/v2026_01_14/

Local server

http://localhost:7072/

Assets

Query available assets and their metadata across supported chains.

Operations

Balances

Query wallet balances for the authenticated user.

Operations

Trading

Fetch quotes and execute trades on supported chains.

Operations

Transfers

Prepare and execute on-chain token transfers.

Operations

Wallets

Create wallets and export private keys.

Operations

Request

Security
bearerAuth
Bodyapplication/jsonrequired
passkeyobject

Passkey authentication data (for passkey wallets)

api_keyobject

API key data (for API key wallets)

curl -i -X POST \
  https://docs.truemarkets.co/_mock/apis/defi-direct/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"
    }
  }'

Responses

Wallet created successfully

Bodyapplication/json
walletsArray of objects

Detailed wallet information

Response
application/json
{ "wallets": [ { … } ] }

Request

Security
bearerAuth
Bodyapplication/jsonrequired
addressstringrequired

Wallet address to export

target_public_keystringrequired

Client-side public key that will receive the encrypted bundle

curl -i -X POST \
  https://docs.truemarkets.co/_mock/apis/defi-direct/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"
  }'

Responses

Export payload created successfully

Bodyapplication/json
payloadstring

Turnkey payload clients must sign to authorize export

Response
application/json
{ "payload": "string" }

Execute a wallet private key export

Request

Security
bearerAuth
Bodyapplication/jsonrequired
addressstringrequired

Wallet address to export

target_public_keystringrequired

Client-side public key that will receive the encrypted bundle

payloadstringrequired

Signed Turnkey activity payload authorizing the export

curl -i -X POST \
  https://docs.truemarkets.co/_mock/apis/defi-direct/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"
  }'

Responses

Export bundle created successfully

Bodyapplication/json
export_bundlestring

Encrypted export bundle

Response
application/json
{ "export_bundle": "string" }

Profile

Retrieve authenticated user profile and wallet information.

Operations

Watchlists

Browse curated asset watchlists.

Operations

History

Unified transaction history across trades, transfers, and on-ramps.

Operations

Onramp

Initiate and track fiat-to-crypto on-ramp transactions via Coinbase.

Operations