Skip to content

Binance API Kline fetcher into Sqlite3 database

Notifications You must be signed in to change notification settings

st1vms/binance-klines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

binance-klines

Installation

Run this command inside the repository folder:

pip install -e .

How to use

Inside a newly created folder, open a terminal and run:

binance-klines

A newly created database holding the kline data will be generated inside this folder.

Example configuration

Create a file named config.ini inside current directory This file can have the following options:

[AUTH]
API_KEY=test
API_SECRET=test

[DATABASE]
FILE_PATH=test.db

[REQUEST_PARAMS]
PAIR_SYMBOL=BTCEUR

CONTRACT_TYPE="PERPETUAL"

INTERVAL=1h

START_TIME = 1706194141
END_TIME = 0

LIMIT=500