diff --git a/index.html b/index.html index 67898f1..e09abf6 100644 --- a/index.html +++ b/index.html @@ -579,6 +579,9 @@
  • Examples
  • +
  • + Records Columns +
  • @@ -3747,20 +3750,40 @@

    Examples

    https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/market/SOL-PERP/tradeRecords/2024/20240101

    +

    Records Columns

    +

    Below are definitions of the columns in each record type.

    +

    trades

    + + + + + + + + + + + + +
    variabledescriptionexample
    accountKeyuser sub account public key (not authority)
    +

    funding-rates

    +

    note: 'rate' is in quote per base, to allow for async settlement

    -
    import requests
     
    -outcsv = requets.get('https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/FrEFAwxdrzHxgc7S4cuFfsfLmcg8pfbxnkCQW83euyCS/tradeRecords/2023/20230201')'
    +outcsv = requests.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