Skip to content

Commit

Permalink
Update _historicaldata.md
Browse files Browse the repository at this point in the history
add description for fundingRate column
  • Loading branch information
0xbigz authored Jun 4, 2024
1 parent ecd4da9 commit af2dae7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions source/includes/_historicaldata.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Get historical trades on `SOL-PERP` for August 5, 2023:
https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/market/SOL-PERP/tradeRecords/2024/20240101
```

<!-- ## Records Columns
## Records Columns

Below are definitions of the columns in each record type.

Expand All @@ -56,10 +56,16 @@ Below are definitions of the columns in each record type.
| --- | --- | --- |
| accountKey | user sub account public key (not authority) | |

### market-trades
### funding-rates

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

| variable | description | example |
| --- | --- | --- |
| fundingRate | the quote asset amount (precision=1e6) per base asset amount (precision=1e9) | |

<!-- ### market-trades
### funding-payments
### deposits
Expand All @@ -74,9 +80,9 @@ Below are definitions of the columns in each record type.
```python
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')'
```

```shell
curl https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/FrEFAwxdrzHxgc7S4cuFfsfLmcg8pfbxnkCQW83euyCS/tradeRecords/2023/20230201 --output out.csv.gz
```
```

0 comments on commit af2dae7

Please sign in to comment.