Skip to content

Commit

Permalink
deploy: af2dae7
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbigz committed Jun 4, 2024
1 parent d662d77 commit 19e759b
Showing 1 changed file with 36 additions and 13 deletions.
49 changes: 36 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,9 @@
<li>
<a href="#examples" class="toc-h2 toc-link" data-title="Examples">Examples</a>
</li>
<li>
<a href="#records-columns" class="toc-h2 toc-link" data-title="Records Columns">Records Columns</a>
</li>
</ul>
</li>
<li>
Expand Down Expand Up @@ -3747,20 +3750,40 @@ <h2 id='examples'>Examples</h2>
<code>
https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/market/SOL-PERP/tradeRecords/2024/20240101
</code></p>
<h2 id='records-columns'>Records Columns</h2>
<p>Below are definitions of the columns in each record type.</p>
<h3 id='trades'>trades</h3>
<table><thead>
<tr>
<th>variable</th>
<th>description</th>
<th>example</th>
</tr>
</thead><tbody>
<tr>
<td>accountKey</td>
<td>user sub account public key (not authority)</td>
<td></td>
</tr>
</tbody></table>
<h3 id='funding-rates'>funding-rates</h3>
<p>note: &#39;rate&#39; is in quote per base, to allow for async settlement</p>

<!-- ## Records Columns
Below are definitions of the columns in each record type.
### trades
| variable | description | example |
| --- | --- | --- |
| accountKey | user sub account public key (not authority) | |
### market-trades
<table><thead>
<tr>
<th>variable</th>
<th>description</th>
<th>example</th>
</tr>
</thead><tbody>
<tr>
<td>fundingRate</td>
<td>the quote asset amount (precision=1e6) per base asset amount (precision=1e9)</td>
<td></td>
</tr>
</tbody></table>

### funding-rates
<!-- ### market-trades
### funding-payments
Expand All @@ -3773,7 +3796,7 @@ <h2 id='examples'>Examples</h2>
### settle-pnl-records -->
<div class="highlight"><pre class="highlight python tab-python"><code><span class="kn">import</span> <span class="nn">requests</span>

<span class="n">outcsv</span> <span class="o">=</span> <span class="n">requets</span><span class="p">.</span><span class="n">get</span><span class="p">(</span><span class="s">'https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/FrEFAwxdrzHxgc7S4cuFfsfLmcg8pfbxnkCQW83euyCS/tradeRecords/2023/20230201'</span><span class="p">)</span><span class="s">'
<span class="n">outcsv</span> <span class="o">=</span> <span class="n">requests</span><span class="p">.</span><span class="n">get</span><span class="p">(</span><span class="s">'https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/FrEFAwxdrzHxgc7S4cuFfsfLmcg8pfbxnkCQW83euyCS/tradeRecords/2023/20230201'</span><span class="p">)</span><span class="s">'
</span></code></pre></div><div class="highlight"><pre class="highlight shell tab-shell"><code>curl https://drift-historical-data-v2.s3.eu-west-1.amazonaws.com/program/dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH/user/FrEFAwxdrzHxgc7S4cuFfsfLmcg8pfbxnkCQW83euyCS/tradeRecords/2023/20230201 <span class="nt">--output</span> out.csv.gz
</code></pre></div><h1 id='errors'>Errors</h1>
<aside class="notice">
Expand Down

0 comments on commit 19e759b

Please sign in to comment.