Trading Data
Trading Data Collection
This guide covers retrieving market data, instruments, pairs, prices, and trade history.
Overview
Before trading, you need to understand available markets and their properties. This involves:
- Fetching available instruments (assets)
- Fetching trading pairs and their constraints
- Retrieving price data
- Viewing trade history
Prerequisites
- Authenticated session (JWT or API key)
CanReadpermission
Step 1: List Available Instruments
Retrieve all tradable instruments.
Endpoint: GET /api/rest/v1/instruments
Request
Query Parameters
This endpoint supports standard pagination, sorting, and filtering.
Response (200 OK)
Instrument Types
Step 2: List Trading Pairs
Retrieve all available trading pairs with their constraints.
Endpoint: GET /api/rest/v1/pairs
Request
Response (200 OK)
Understanding Pair Constraints
Step 3: Get Current Prices
Retrieve current market prices.
Endpoint: GET /api/rest/v1/prices
Request
Response (200 OK)
Step 4: Get Public Marketplace Trades
View recent public trades for a pair.
Endpoint: GET /api/rest/v1/marketplace/trades
Request
Query Parameters
This endpoint supports standard pagination and sorting.
Response (200 OK)
Marketplace Trade Fields (Anonymized)
Step 5: Get Your Trade History
View your own executed trades.
Endpoint: GET /api/rest/v1/trades
Request
Query Parameters
This endpoint supports standard pagination, sorting, and filtering.
Supported filters: side, pair_id
Response (200 OK)
Trade Fields
Step 6: Get Trade Volumes
Get aggregated trade volumes by pair over a date range.
Endpoint: GET /api/rest/v1/trade-volumes
Request
Query Parameters
This endpoint supports standard pagination and sorting.
Response (200 OK)
TradeVolume Fields
Step 7: Get a Specific Trade
Endpoint: GET /api/rest/v1/trades/{id}
Request
Response (200 OK)
Error Scenarios
Related
- OTC Trading - OTC trading workflow
- Wallet Information - Balance information
- Domains: Trading - Full trading API reference