diff --git a/index.html b/index.html index 108cae1..37604d0 100644 --- a/index.html +++ b/index.html @@ -3531,13 +3531,13 @@

Websocket - Liveness measure

Ping/pong

No ping messages are sent from the websocket server. Unsolicited ping messages are allowed and will receive pongs back.

Historical Data

-

Snapshots are collected by parsing on-chain transaction logs. For convience the below are parsed logs collected, stored as a CSV, and stored off-chain (~99% of records).

+

Snapshots are collected by parsing on-chain transaction logs. For convience the below are parsed logs collected, stored as a CSV, and stored off-chain (~99% of records). Records are updated once per day.

Please share any transaction signatures or time ranges you believe might be missing in Drift Protocol Discord.

URL Prefix

-

mainnet-beta: https://drift-historical-data.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/

+

mainnet-beta: https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/

-

devnet: https://drift-historical-data.s3.us-east-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/

+

URL Suffix

Schema

@@ -3547,35 +3547,39 @@

URL Suffix

Schema

- + - + - + - + - + - + - - + + - - + + + + + +
tradesuser/${accountKey}/trades/${year}/${month}user/${accountKey}/tradeRecords/${year}/${year}${month}${day}
market-tradesmarket/${marketSymbol}/trades/${year}/${month}/${day}market/${marketSymbol}/tradeRecords/${year}/${year}${month}${day}
funding-ratesmarket/${marketSymbol}/funding-rates/${year}/${month}market/${marketSymbol}/fundingRateRecords/${year}/${year}${month}${day}
funding-paymentsuser/${accountKey}/funding-payments/${year}/${month}user/${accountKey}/fundingPaymentRecords/${year}/${year}${month}${day}
depositsuser/${accountKey}/deposits/${year}/${month}user/${accountKey}/depositRecords/${year}/${year}${month}${day}
liquidationsuser/${accountKey}/liquidations/${year}/${month}user/${accountKey}/liquidationRecords/${year}/${year}${month}${day}
candlesmarket/${marketSymbol}/candles/${year}/${month}/resolution/${candleResolution}settle-pnluser/${accountKey}/settlePnlRecords/${year}/${year}${month}${day}
settle-pnl-recordsuser/${accountKey}/settlePnls/${year}/${month}lpuser/${accountKey}/lpRecord/${year}/${year}${month}${day}
insurance-fund-stakeauthority/${authorityAccountKey}/insuranceFundStakeRecords/${year}/${year}${month}${day}

Variables

@@ -3640,8 +3644,8 @@

trades

market-trades

funding-rates

funding-payments

deposits

liquidations

candles

settle-pnl-records

import requests
 
-outcsv = requets.get('https://drift-historical-data.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/2dy78vpWpquDgAoLB8w8Ewfns9WXYzQx4CGt3HSgZLEe/trades/2023/4')'
-
curl https://drift-historical-data.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/2dy78vpWpquDgAoLB8w8Ewfns9WXYzQx4CGt3HSgZLEe/trades/2023/4 --output out.csv.gz
+outcsv = requets.get('https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/FrEFAwxdrzHxgc7S4cuFfsfLmcg8pfbxnkCQW83euyCS/tradeRecords/2023/20230201')'
+
curl https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/FrEFAwxdrzHxgc7S4cuFfsfLmcg8pfbxnkCQW83euyCS/tradeRecords/2023/20230201 --output out.csv.gz
 

Errors