Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jesusgraterol/binance-futures-dataset-builder
The dataset builder script extracts the most relevant market data straight from Binance's API and builds a series of datasets that can be used in data science and machine learning projects.
https://github.com/jesusgraterol/binance-futures-dataset-builder
bitcoin blockchain blockchain-technology data datascience datascience-machinelearning dataset dataset-generation futures futures-long-short futures-market machine-learning
Last synced: 2 days ago
JSON representation
The dataset builder script extracts the most relevant market data straight from Binance's API and builds a series of datasets that can be used in data science and machine learning projects.
- Host: GitHub
- URL: https://github.com/jesusgraterol/binance-futures-dataset-builder
- Owner: jesusgraterol
- Created: 2023-08-21T20:33:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-29T20:11:05.000Z (12 months ago)
- Last Synced: 2023-11-29T21:26:42.725Z (12 months ago)
- Topics: bitcoin, blockchain, blockchain-technology, data, datascience, datascience-machinelearning, dataset, dataset-generation, futures, futures-long-short, futures-market, machine-learning
- Language: TypeScript
- Homepage: https://www.kaggle.com/jesusgraterol/datasets
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Binance Futures Dataset Builder
The dataset builder script extracts the most relevant market data straight from Binance's API and builds and stores a series of datasets that can be used in data science and machine learning projects.
These dataset files (updated quarterly) are hosted in Kaggle and can be downloaded from the following URLs:
**Funding Rate:** [Dataset File](https://www.kaggle.com/datasets/jesusgraterol/bitcoin-funding-rate-binance-futures) | [Dataset Notebook](https://www.kaggle.com/code/jesusgraterol/bitcoin-funding-rate-binance-futures-ds)
**Long/Short Ratio:** [Dataset File](https://www.kaggle.com/datasets/jesusgraterol/bitcoin-longshort-ratio-binance-futures) | [Dataset Notebook](https://www.kaggle.com/code/jesusgraterol/bitcoin-long-short-ratio-binance-futures-ds)
**Open Interest:** [Dataset File](https://www.kaggle.com/datasets/jesusgraterol/bitcoin-open-interest-binance-futures) | [Dataset Notebook](https://www.kaggle.com/code/jesusgraterol/bitcoin-open-interest-binance-futures-ds)
**Taker Buy/Sell Volume:** [Dataset File](https://www.kaggle.com/datasets/jesusgraterol/bitcoin-taker-buysell-volume-binance-futures) | [Dataset Notebook](https://www.kaggle.com/code/jesusgraterol/bitcoin-taker-buy-sell-volume-binance-futures-ds)
#
## Requirements- NodeJS: ^v18.17.0
- NPM: ^v9.6.7
- Typescript: ^v5.1.6
**NOTE**: the versions listed above are the ones used to code the script. It may run on older|newer versions.
#
## Project Structure```
binance_futures_dataset_builder/
└───dist/
| └──...
node_modules/
| └──...
output/ <- Dataset Files
| ├──funding_rate.csv
| ├──long_short_ratio.csv
| ├──open_interest.csv
| └──taker_buy_sell_volume.csv
src/
| └──...
.gitignore
package-lock.json
package.json
README.md
tsconfig.json
```#
## Getting StartedInstall dependencies with:
`npm install`
Initialize the syncing process with:
`npm start`
**NOTE**: if the syncing execution were to fail and stop for any reason, it can be executed again without the risk of corrupting the dataset. Additionally, if your project requires a fresh dataset frequently, download the pruned file/files from [Kaggle](https://www.kaggle.com/jesusgraterol/datasets) and place it/them in the output directory.
#
## Dataset Schemas### Funding Rate [?](https://www.binance.com/en/blog/futures/what-is-futures-funding-rate-and-why-it-matters-421499824684903247)
| Name | Type | Description
| ---- | ---- | -----------
| timestamp | int | The record's timestamp in milliseconds
| funding_rate | float | The funding rate value### Open Interest [?](https://www.binance.com/en/blog/futures/what-information-does-open-interest-convey-421499824684900398)
| Name | Type | Description
| ---- | ---- | -----------
| timestamp | int | The record's timestamp in milliseconds
| sum_open_interest | float | Total open interest (BTC)
| sum_open_interest_value | float | Total open interest value (USDT)### Long/Short Ratio [?](https://www.binance.com/en/blog/futures/what-is-longshort-ratio-and-what-does-it-convey-in-cryptocurrency-futures-6728490800036398885)
| Name | Type | Description
| ---- | ---- | -----------
| timestamp | int | The record's timestamp in milliseconds
| long_account | float | Long account num ratio of all traders
| short_account | float | Short account num ratio of all traders
| long_short_ratio | float | Long/Short account num ratio of all traders### Taker Buy/Sell Volume [?](https://www.binance.com/en/feed/post/164092)
| Name | Type | Description
| ---- | ---- | -----------
| timestamp | int | The record's timestamp in milliseconds
| buy_vol | float | Total BTC volume bought by Takers
| sell_vol | float | Total BTC volume sold by Takers
| buy_sell_ratio | float | The taker buy/sell ratio#
## Unit TestsSince the dataset files are deeply analyzed in Jupyter|Kaggle Notebooks, no unit tests were written. If you wish to see more details regarding these datasets, please visit:
**Funding Rate:** [Dataset File](https://www.kaggle.com/datasets/jesusgraterol/bitcoin-funding-rate-binance-futures) | [Dataset Notebook](https://www.kaggle.com/code/jesusgraterol/bitcoin-funding-rate-binance-futures-ds)
**Long/Short Ratio:** [Dataset File](https://www.kaggle.com/datasets/jesusgraterol/bitcoin-longshort-ratio-binance-futures) | [Dataset Notebook](https://www.kaggle.com/code/jesusgraterol/bitcoin-long-short-ratio-binance-futures-ds)
**Open Interest:** [Dataset File](https://www.kaggle.com/datasets/jesusgraterol/bitcoin-open-interest-binance-futures) | [Dataset Notebook](https://www.kaggle.com/code/jesusgraterol/bitcoin-open-interest-binance-futures-ds)
**Taker Buy/Sell Volume:** [Dataset File](https://www.kaggle.com/datasets/jesusgraterol/bitcoin-taker-buysell-volume-binance-futures) | [Dataset Notebook](https://www.kaggle.com/code/jesusgraterol/bitcoin-taker-buy-sell-volume-binance-futures-ds)