Skip to content

Commit

Permalink
Merge pull request #10 from XeonBloomfield/main
Browse files Browse the repository at this point in the history
Use base URL for testnet and production
  • Loading branch information
Erfaniaa authored Jan 11, 2023
2 parents 60be013 + f83ce7c commit c55fc6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ def init_bot() -> None:
global binance_futures_api

if IS_TESTNET:
binance_futures_api = UMFutures(key=API_KEY_TESTNET, secret=SECRET_KEY_TESTNET)
binance_futures_api = UMFutures(key=API_KEY_TESTNET, secret=SECRET_KEY_TESTNET, base_url=URL_BASE_TESTNET)
else:
binance_futures_api = UMFutures(key=API_KEY_PRODUCTION, secret=SECRET_KEY_PRODUCTION)
binance_futures_api = UMFutures(key=API_KEY_PRODUCTION, secret=SECRET_KEY_PRODUCTION, base_url=URL_BASE_PRODUCTION)

def update_is_price_increasing(
price_direction_indicator_name_1: str,
Expand Down

0 comments on commit c55fc6d

Please sign in to comment.