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

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

Request

Initiates a Coinbase onramp flow for purchasing crypto with fiat

Security
bearerAuth
Bodyapplication/jsonrequired
chainstringrequired

The blockchain to onramp to (e.g., "solana", "base")

Enum"solana""base"
amountstringrequired

The amount to purchase in USD

payment_methodstringrequired

The payment method to use

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

Responses

Onramp transaction created successfully

Bodyapplication/json
urlstring

The Coinbase onramp URL to redirect the user to

tx_idstring

The transaction ID for tracking

Response
application/json
{ "url": "string", "tx_id": "string" }

Request

Returns the status of a specific onramp transaction

Security
bearerAuth
Path
idstringrequired

Transaction ID

curl -i -X GET \
  'https://docs.truemarkets.co/_mock/apis/defi-direct/v2026_01_14/v1/defi/core/onramp/transactions/{id}/status' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Transaction status

Bodyapplication/json
tx_statusstring

The current status of the onramp transaction

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