BarendPotijk
deribit_historical_trades
Python

The deribit_historical_trades repository gathers cryptocurrency (BTC, ETH, SOL, USDC) derivatives traded on the cryptocurrency derivative platform Deribit.

Last updated Apr 16, 2026
24
Stars
4
Forks
0
Issues
0
Stars/day
Attention Score
14
Language breakdown
Python 100.0%
Files click to expand
README


Logo

Historical Crypto trades

Gather Cryptocurrency derivative trades using Deribit API v2
Explore the docs »

See code

Project description ##

The deribithistoricaltrades repository gathers cryptocurrency (BTC, ETH, SOL, USDC) derivatives traded on the cryptocurrency derivative platform Deribit. All crypto derivatives trades since the start of the platform are publicly available in the Deribit API v2.1.1 under 'https://history.deribit.com/api/v2/public/getlasttradesbycurrency' using REST requests. For further information and the documentations see https://docs.deribit.com/#public-getlasttradesbycurrencyandtime.

Getting Started ##

To use this script, you will need to have Python 3 and the following libraries installed:

* json * requests * pandas * datetime

Running the Script ##

1. Open the script (Deribitderivativedata.py) in your preferred Python editor. 2. Ensure that the required libraries are installed. 3. Set the query parameters for the API endpoint in the function derivative_data():

derivativedata(currency, startdate, end_date, kind = 'any', count = 10000)
4. Run the script.

Parameters ##

| Parameter | Required | Type | Enum | Description | | --- | --- | --- | --- | --- | | currency | true | string | BTC
ETH
SOL
USDC| The currency symbol| | start_date | true | datetime object | | The earliest datetime object to return result for| | end_date | true | datetime object | | The most recent datetime object to return result for| | kind | false | string | future
option
futurecombo
option
combo
combo
any | Instrument kind, combo for any combo or any for all. If not provided instruments of all kinds are considered | | count | false | integer | | Number of requested items, default - 10000 |

Contributing ##

If you find a bug or would like to suggest an enhancement, please create an issue or submit a pull request. We welcome any contributions or feedback to make this script more useful and user-friendly for the cryptocurrency community.
🔗 More in this category

© 2026 GitRepoTrend · BarendPotijk/deribit_historical_trades · Updated daily from GitHub