CSV Format

Returning CSV format is possible in many of the API endpoints. The setup is simple and has a comprehensive flexibility with customization.

Format

Query parameter: format

This parameter specifies the response data format.

Value

Description

none

Default. JSON data format will be used as response format.

csv

Comma separated value data will be used as response format.

json

JSON data format will be used as response format.

*Note: Only applies to endpoints that support format=csv

Example Response:

Endpoint: /market/prices/:pair/historical?format=csv

"timestamp","price"
"btc_usd",1585342500000,"6681.8910000000000000"
"btc_usd",1585342440000,"6681.0570000000000000"
"btc_usd",1585342380000,"6679.7450000000000000"
"btc_usd",1585342320000,"6673.9760000000000000"
"btc_usd",1585342260000,"6669.6090000000000000"
"btc_usd",1585342200000,"6668.9490000000000000"
"btc_usd",1585342140000,"6665.5220000000000000"
"btc_usd",1585342080000,"6665.4080000000000000"
"btc_usd",1585342020000,"6665.5650000000000000"
"btc_usd",1585341960000,"6666.6920000000000000"
"btc_usd",1585341900000,"6666.3420000000000000"

Fields

Query parameter: fields

This parameter specifies the response data format.

Value

Description

none

Default returns all available fields for the data set.

*fields

Documentation differs per endpoint. To understand the available fields, look at the payload key names as these are the same (case sensitive) as the csv field names

*Note: Only applies to endpoints that support format=csv

Example Response:

Endpoint: /transactions?includePrice=true&format=csv&fields=blockNumber,value,fee,price_value_total,statusResult_name

"blockNumber","value","fee","price_value_total","statusResult_name"
"9755739","0","4551957000000000","0.0000000000000000000000000000000000000000000000000000","successful"
"9755739","0","4360700000000000","0.0000000000000000000000000000000000000000000000000000","successful"
"9755739","0","1138192000000000","0.0000000000000000000000000000000000000000000000000000","successful"
"9755739","0","823940000000000","0.0000000000000000000000000000000000000000000000000000","successful"
"9755739","0","408300000000000","0.0000000000000000000000000000000000000000000000000000","successful"
"9755739","0","1238292000000000","0.0000000000000000000000000000000000000000000000000000","successful"
"9755739","0","468294388209450","0.0000000000000000000000000000000000000000000000000000","successful"
"9755739","7799820165000000000","219135000000000","1067.17139497530000000000000000000000","successful"