Binance-volatility-trading-bot icon indicating copy to clipboard operation
Binance-volatility-trading-bot copied to clipboard

Coin Price Recorded doesn't match Actual Price of Coin Purchased at after Order Execution by Binance

Open celltronic01 opened this issue 3 years ago • 1 comments

Hi, I have an issue or 2. Please, if someone could look into this for me. Not a Python Savvy here.

  1. Trades.txt is recording everything twice
  2. When an order is sent, it records the buy/sell price at the price the order is sent but by the time the order is executed by binance, the price is different. for example: lets take SOL. The bot sends the order for 2 SOL for 65.476 and records the coin buy with bouth at price in coins.json and trades.txt at 65.476. However, by the time the trade was received and executed by binance, it was actually purchased at 66.774 which actually is a problem because bot is thinking it was bought at 65.476 and calculates the take profit percentage at recorded price which is not the actual price at which the order was actually exacuted

celltronic01 avatar Aug 17 '21 17:08 celltronic01