-
-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nathan getty
committed
Jun 9, 2021
1 parent
5e7dcec
commit 77bfc00
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77bfc00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there$) is less then Max amount per coin($ ), then buy coin again and update volume quantity, and update bought for price by average cost and keep buying each time the price drops till Max Amount per coin is reached.
I have a suggestion. Please, if not much of a bother.
1: How about adding cost averaging.
Such as,
Max Amount per trade =$X,
Max Amount per coin = $X,
Max Number of coins to hold =X
If Coin is already in coins bought, and current price of coin is less then coin price in coins bought for, and total of Max Amount per coins(
Also,
I need help with an issue
Bot functioning fine if Custom List = False
TLD = 'us', all is well.
However, when Customer List = True, and tickers.txt is present with list of coins, I get Key Error (BNBUSD)
Any Suggestions?
This is the Exact Error Message:
Traceback (most recent call last):
File "c:\Users\cellt\OneDrive\Desktop\Trading Bot\Binance\Binance_1.py", line 437, in
orders, last_price, volume = buy()
File "c:\Users\cellt\OneDrive\Desktop\Trading Bot\Binance\Binance_1.py", line 252, in buy
volume, last_price = convert_volume()
File "c:\Users\cellt\OneDrive\Desktop\Trading Bot\Binance\Binance_1.py", line 212, in convert_volume
volatile_coins, number_of_coins, last_price = wait_for_price()
File "c:\Users\cellt\OneDrive\Desktop\Trading Bot\Binance\Binance_1.py", line 157, in wait_for_price
while initial_price['BNB' + PAIR_WITH]['time'] > datetime.now() - timedelta(seconds=TIME_DIFFERENCE):
KeyError: 'BNBUSD'