Skip to content

Binance data tools. Fetch, store to database and get resampled or raw data.

License

Notifications You must be signed in to change notification settings

cubecloud/dbbinance-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbbinance-storage

Binance data tools. Fetch, store to local database and get resampled or raw data from it. Postgresql must be installed, and database and users created BEFORE

  1. check and correct the config files in 'config' directory
  2. check and correct dbdata_updater.py for 'symbol_pairs'
  3. run the dbdata_updater.py - to store data for chosen symbol_pairs from BINANCE to local postgresql database
  4. then prompted for SALT for api, enter your Salt_1 key (22 chars), and your Salt_2 key (10 chars) (write it down for further usage)
  5. enter the BINANCE API KEY and BINANCE API SECRET (check the instruction below)
  6. then prompted for SALT for postgresql database, enter Salt key (write it down for further usage)
  7. save files with .env extension to the main directory of your project or this project
  8. ATTENTION! exclude *.env in your .gitignore
  9. you can set your BINANCE SALT as BINANCE_KEY ENV variable (Salt_1+Salt_2), and postgresql SALT as PSGSQL_KEY ENV variable for auto confirmation

How to get Binance API Token:

  1. Register your account at Binance https://www.binance.com/?ref=CPA_004RZBKQWK
  2. Go to "API Management" https://www.binance.com/en/my/settings/api-management?ref=CPA_004RZBKQWK
  3. Then push the button "Create API" and select "System generated"
  4. In "API restrictions" enable "Enable Spot & Margin Trading"
  5. Copy & Paste here "API Key" and "Secret Key"

Attention

Environment file for conda 'db-updater.yml' contains HARD prefix to env location. Correct it before using to create ENV

Usage:

import dbbinance

About

Binance data tools. Fetch, store to database and get resampled or raw data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published