Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adalyat Nazirov committed Feb 15, 2022
1 parent ebacdde commit a0188bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,7 @@ Options:
--gdax-api-secret TEXT Your Coinbase Pro API secret
--gdax-passphrase TEXT Your Coinbase Pro API passphrase
--gdax-use-sandbox BOOLEAN Whether the sandbox should be used
--binance-organization TEXT The name or id of the organization with the Binance module subscription
--binance-api-key TEXT Your Binance API key
--binance-api-secret TEXT Your Binance API secret
--binance-use-testnet BOOLEAN Whether the testnet should be used
Expand Down
7 changes: 5 additions & 2 deletions lean/commands/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,10 @@ def live(project: Path,
gdax_use_sandbox)
elif brokerage == BinanceBrokerage.get_name():
ensure_options(["binance_api_key", "binance_api_secret", "binance_use_testnet"])
brokerage_configurer = BinanceBrokerage(binance_organization, binance_api_key, binance_api_secret, binance_use_testnet)
brokerage_configurer = BinanceBrokerage(_get_organization_id(binance_organization, "Binance"),
binance_api_key,
binance_api_secret,
binance_use_testnet)
elif brokerage == ZerodhaBrokerage.get_name():
ensure_options(["zerodha_api_key",
"zerodha_access_token",
Expand Down Expand Up @@ -914,7 +917,7 @@ def live(project: Path,
gdax_use_sandbox))
elif data_feed == BinanceDataFeed.get_name():
ensure_options(["binance_api_key", "binance_api_secret", "binance_use_testnet"])
data_feed_configurer = BinanceDataFeed(BinanceBrokerage(binance_organization,
data_feed_configurer = BinanceDataFeed(BinanceBrokerage(_get_organization_id(binance_organization, "Binance"),
binance_api_key,
binance_api_secret,
binance_use_testnet))
Expand Down

0 comments on commit a0188bc

Please sign in to comment.