Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.97 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.97 KB

Dependencies:

  • pip install python-binance
  • pip install python-dotenv

Related API documentation:

To get historical price data from Binance in the crypto_pairs_scratch.ipynb file:

  • Make an account on binance.us
  • Once your account is set up, follow these steps to create your api keys
    • In particular, make sure that you've enabled 2FA, you've made a deposit in your account, and that your account is verified
  • After you have your api keys, make a file called .env at the same level as crypto_pairs_scratch.ipynb
  • Your .env file should have 2 lines:
    • binanceAPIKey=YourAPIKeyThatYouCopiedFromBinance
    • binanceSecretKey=YourSecretKeyThatYouCopiedFromBinance
  • Make sure to add the .env file to your gitignore
  • You should now be able to run the code in crypto_pairs_scratch.ipynb (make sure that you have pip installed python-binance and python-dotenv)

Testing your algorithm