Download a chart as CSV
curl --request GET \
--url https://api.glassmarkets.io/v2/metrics/chart-csv/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v2/metrics/chart-csv/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v2/metrics/chart-csv/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Market data
Download a chart as CSV
Returns the series of one chart as a CSV file. specific_metric picks the metric and group_by how series are grouped. Every other query parameter goes to the endpoint behind the metric, including the ones it requires such as interval, and is validated the same way. Endpoint per metric:
volume,twap,vwap,volumeContribution,perpSpotArbitrage:GET /v2/metrics/volume/rollingVolume,rollingTwap,rollingVwap:GET /v2/metrics/rolling_volume/spreadAbs,spreadBps,midPrice,midPriceMovement:GET /v2/metrics/spread/topOfBookBidPrice,topOfBookBidAmount,topOfBookBidAmountUsd,topOfBookAskPrice,topOfBookAskAmount,topOfBookAskAmountUsd:GET /v2/metrics/top_of_book/depthBid,depthAsk,countBid,countAsk:GET /v2/metrics/depth/slippageBuy,slippageSell:GET /v2/metrics/slippage/spreadUptime:GET /v2/metrics/uptime/spread/depthUptime:GET /v2/metrics/uptime/depth/fundingRate8h,fundingRateAnnualized,oiWeightedFundingRate8h,oiWeightedFundingRateAnnualized,openInterestUsd,openInterestBase:GET /v2/metrics/futures/marketMakerVolume:GET /v2/organizations/market-maker-metrics/volume/marketMakerDepthBid,marketMakerDepthAsk:GET /v2/organizations/market-maker-metrics/depth/marketMakerSpreadBps:GET /v2/organizations/market-maker-metrics/spread/marketMakerVolumeCoverage:GET /v2/organizations/market-maker-metrics/coverage/volume/marketMakerDepthCoverageBid,marketMakerDepthCoverageAsk:GET /v2/organizations/market-maker-metrics/coverage/depth/reportedVolume:GET /v2/organizations/reported-metrics/volume/reportedVolumeCoverage:GET /v2/organizations/reported-metrics/coverage/volume/reportedSpreadBps:GET /v2/organizations/reported-metrics/spread/reportedSpreadUptime:GET /v2/organizations/reported-metrics/uptime/spread/reportedDepthBid,reportedDepthAsk:GET /v2/organizations/reported-metrics/depth/reportedDepthUptimeBid,reportedDepthUptimeAsk:GET /v2/organizations/reported-metrics/uptime/depth/reportedDepthCoverageBid,reportedDepthCoverageAsk:GET /v2/organizations/reported-metrics/coverage/depth/
Download a chart as CSV
curl --request GET \
--url https://api.glassmarkets.io/v2/metrics/chart-csv/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v2/metrics/chart-csv/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v2/metrics/chart-csv/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Authorizations
Token-based authentication with required prefix "Token ". Example: "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"
Query Parameters
File name of the download.
Minimum string length:
1Keep only these exchange slugs. Repeatable.
Keep only these organization slugs. Repeatable.
Keep only pairs with these quote currencies. Repeatable.
One series per pair, exchange, asset or organization, or one for all.
pair- pairall- allexchange- exchangeasset- assetorganization- organization
Available options:
pair, all, exchange, asset, organization Minimum string length:
1Keep only the series with these labels. Repeatable.
volume- volumetwap- twapvwap- vwaprollingVolume- rollingVolumerollingTwap- rollingTwaprollingVwap- rollingVwapspreadAbs- spreadAbsspreadBps- spreadBpsmidPrice- midPricemidPriceMovement- midPriceMovementtopOfBookBidPrice- topOfBookBidPricetopOfBookBidAmount- topOfBookBidAmounttopOfBookBidAmountUsd- topOfBookBidAmountUsdtopOfBookAskPrice- topOfBookAskPricetopOfBookAskAmount- topOfBookAskAmounttopOfBookAskAmountUsd- topOfBookAskAmountUsddepthBid- depthBiddepthAsk- depthAskcountBid- countBidcountAsk- countAskslippageBuy- slippageBuyslippageSell- slippageSellspreadUptime- spreadUptimedepthUptime- depthUptimevolumeContribution- volumeContributionfundingRate8h- fundingRate8hfundingRateAnnualized- fundingRateAnnualizedoiWeightedFundingRate8h- oiWeightedFundingRate8hoiWeightedFundingRateAnnualized- oiWeightedFundingRateAnnualizedopenInterestUsd- openInterestUsdopenInterestBase- openInterestBaseperpSpotArbitrage- perpSpotArbitragemarketMakerVolume- marketMakerVolumemarketMakerDepthBid- marketMakerDepthBidmarketMakerDepthAsk- marketMakerDepthAskmarketMakerSpreadBps- marketMakerSpreadBpsmarketMakerVolumeCoverage- marketMakerVolumeCoveragemarketMakerDepthCoverageBid- marketMakerDepthCoverageBidmarketMakerDepthCoverageAsk- marketMakerDepthCoverageAskreportedVolume- reportedVolumereportedVolumeCoverage- reportedVolumeCoveragereportedSpreadBps- reportedSpreadBpsreportedSpreadUptime- reportedSpreadUptimereportedDepthBid- reportedDepthBidreportedDepthAsk- reportedDepthAskreportedDepthUptimeBid- reportedDepthUptimeBidreportedDepthUptimeAsk- reportedDepthUptimeAskreportedDepthCoverageBid- reportedDepthCoverageBidreportedDepthCoverageAsk- reportedDepthCoverageAsk
Available options:
volume, twap, vwap, rollingVolume, rollingTwap, rollingVwap, spreadAbs, spreadBps, midPrice, midPriceMovement, topOfBookBidPrice, topOfBookBidAmount, topOfBookBidAmountUsd, topOfBookAskPrice, topOfBookAskAmount, topOfBookAskAmountUsd, depthBid, depthAsk, countBid, countAsk, slippageBuy, slippageSell, spreadUptime, depthUptime, volumeContribution, fundingRate8h, fundingRateAnnualized, oiWeightedFundingRate8h, oiWeightedFundingRateAnnualized, openInterestUsd, openInterestBase, perpSpotArbitrage, marketMakerVolume, marketMakerDepthBid, marketMakerDepthAsk, marketMakerSpreadBps, marketMakerVolumeCoverage, marketMakerDepthCoverageBid, marketMakerDepthCoverageAsk, reportedVolume, reportedVolumeCoverage, reportedSpreadBps, reportedSpreadUptime, reportedDepthBid, reportedDepthAsk, reportedDepthUptimeBid, reportedDepthUptimeAsk, reportedDepthCoverageBid, reportedDepthCoverageAsk Minimum string length:
1Response
200 - text/csv
CSV file download.
The response is of type string.

