21jake / Binance-volatility-trading-bot-JS

This Binance trading bot detects the most volatile cryptos to buy and later sell at predefined Take Profit / Stop Loss thresholds.
MIT License
35 stars 6 forks source link

Error in executing buying volatiles function: #12

Open ceyhanmolla opened 3 years ago

ceyhanmolla commented 3 years ago

[6/7/2021, 11:04:49 AM] Error in executing buying volatiles function: "Error in calculating quantity: \"Current portfolio value exceeds the initial quantity, waiting for the current asset(s) to be sold first...\""

21jake commented 3 years ago

Please provide more information and your configurations (except the API keys). I can't inspect the issue with just an info log

ceyhanmolla commented 3 years ago

`# PRICE CHECKING INTERVAL, MEASURED IN MINUTES INTERVAL = 1

SAFE MODE SCAN INTERVAL (CHECK PRICE MORE FREQUENTLY AFTER THE ASSET IS BOUGHT)

SCAN_INTERVAL = 0.01

SET USDT AS THE DEFAULT PAIR-ER

PAIR_WITH = 'USDT'

THE MAXIMUM AMOUNT THE BOT CAN SPEND

QUANTITY = 15

MINIMUM AMOUNT TO PLACE AN ORDER, BINANCE WOULDN'T ALLOW A LOWER QUANTITY.

MIN_QUANTITY = 11

IF THE PRICE OF A COIN INCREASES BY THIS PERCENTAGE, THE BOT PROCEEDS TO BUY IT. DEFAULT TO 3

VOLATILE_TRIGGER = 5

TAKE PROFIT THRESHOLD

TP_THRESHOLD = 2

STOP LOSS THRESHOLD

SL_THRESHOLD = 3

SOMETIMES BINANCE WOULDN'T LET YOU SELL 100% OF THE ASSET.

IF YOU HAVE BNBs TO PAY FOR TRANSACTIONS, YOU CAN SET THIS TO 100 (%)

ACTUAL_SELL_RATIO = 99.5 `

ceyhanmolla commented 3 years ago

[6/7/2021, 2:31:06 PM] MDTUSDT price hasn't hit SL or TP threshold, continue to wait... [6/7/2021, 2:31:06 PM] Error in executing buying volatiles function: "Error in calculating quantity: \"Current portfolio value exceeds the initial quantity, waiting for the current asset(s) to be sold first...\"" [6/7/2021, 2:31:06 PM] Error in executing buying volatiles function: "Error in calculating quantity: \"Current portfolio value exceeds the initial quantity, waiting for the current asset(s) to be sold first...\"" [6/7/2021, 2:31:07 PM] MDTUSDT price hasn't hit SL threshold durin