Trades
/timeseries/market-trades
Definition
Details
API Endpoints
Coin Metrics API key can be specified as ?api_key= query parameter.
Comma separated list of markets or market patterns like exchange-* or exchange-*-spot or *USDT-future.
Use a corresponding /catalog-all-v2/market-{dataType} endpoint for the full list of supported markets for a given data type.
Start of the time interval.
This field refers to the time field in the response.
Multiple formats of ISO 8601 are supported: 2006-01-20T00:00:00Z, 2006-01-20T00:00:00.000Z, 2006-01-20T00:00:00.123456Z, 2006-01-20T00:00:00.123456789Z, 2006-01-20, 20060120.
Inclusive by default.
UTC timezone by default. Z suffix is optional and timezone parameter has a priority over it.
If start_time is omitted, response will include time series from the earliest time available.
End of the time interval.
This field refers to the time field in the response.
Multiple formats of ISO 8601 are supported: 2006-01-20T00:00:00Z, 2006-01-20T00:00:00.000Z, 2006-01-20T00:00:00.123456Z, 2006-01-20T00:00:00.123456789Z, 2006-01-20, 20060120.
Inclusive by default.
UTC timezone by default. Z suffix is optional and timezone parameter has a priority over it.
If end_time is omitted, response will include time series up to the latest time available.
Inclusive or exclusive corresponding start_* parameters.
trueInclusive or exclusive corresponding end_* parameters.
trueTimezone name for start_time and end_time timestamps.
This parameter does not modify the output times, which are always UTC.
Format is defined by TZ database.
UTCExample: America/New_YorkNumber of items per single page of results.
The value of this parameter is ignored if the endpoint supports the format parameter and its value is set to json_stream.
100Where does the first page start, at the start of the interval or at the end.
The value of this parameter is ignored if the endpoint supports the format parameter and its value is set to json_stream.
endPossible values: How many entries per market result should contain. It is useful when multiple markets are requested.
Human-readable formatting of JSON responses.
falseFormat of the response. Supported values are json, json_stream, csv.
jsonPossible values: Token for receiving the results from the next page of a query.
Should not be used directly. To iterate through pages just use next_page_url response field.
Specifies how many blocks behind the chain tip trades are based on. Default is 2. For example, a min_confirmations of 0 means trades are being collected for all blocks up to the block at the tip of the chain (the latest block received by our node) whereas a min_confirmations of 6 means that trades are being collected for all blocks up to the block that is 6 blocks behind the chain tip (i.e., the 7th block if the chain tip is block 1). Currently available only for DeFi markets.
2Time series of market trades.
Token of the next page results for a given request.
URL of the next page results for a given request.
Market not found.
Requested resource requires authorization.
Requested resource is not available with supplied credentials.
Provided URI is too long. It must not be greater than 10000 symbols.
Example
Frequently Asked Questions
What is the latency of your trades data?
What is the historical coverage of your trades data?
Can you tell me more information on how to interpret the coin_metrics_id field?
coin_metrics_id field?How do you ensure that the data contains no duplicate trades?
Is there a way to pull data for multiple markets in one API call?
What is the timestamp resolution of your trades data?
What is the difference between time and database_time?
time and database_time?How is database_time useful?
database_time useful?How come there is no trades data for a particular market?
How come there are multiple trades with the same timestamp for a particular market?
Do you support any dexes/decentralized exchanges?
How does Coin Metrics ensure high levels of data quality and data integrity?
Release History
Availability
Availability by Market Type
Availability by Exchange
Last updated
Was this helpful?