Username: Password:

Author Topic: SpotGrid Advanced Issue  (Read 11814 times)

Offline felixinbali

  • Rookie
  • *
  • Posts: 5
    • View Profile
SpotGrid Advanced Issue
« on: January 07, 2022, 12:45:56 PM »
I am facing an issue with StepGrid Adavanced strategy.
Example:
Bot creates buy order 0.00028 BTC for 42420 USDT - order is filled in Binance (11.88 USDT)
Bot created sell order 0.00027 BTC for 44500 USDT - order is filled in Binance (12.02 USDT)
It should have sold 0.00028 BTC for 44500 USDT (12.46 USDT).
So why does the bot sell 0.00001 BTC less than it bought?
Binance minimum trade limit for BTC is 0.000001 BTC with minumum order 10 USDT - so there is no issue.
I used postman with the Binance API and was able to create orders without any issues to buy 0.00028 and sell 0.00028 using market or limited orders.
Any help would be appreciated as this is affecting profit/trade.
« Last Edit: January 08, 2022, 02:07:51 AM by felixinbali »

Offline felixinbali

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: SpotGrid Advanced Issue
« Reply #1 on: January 08, 2022, 01:53:21 AM »
another example from the grid output:

origQty: '0.00027000', means the original request was for the wrong quantity which should have been '0.00028000' (Quantity of related buy order).
Otherwise I like the results from sga strategy but this need to be fixed.

{
  info: {
    symbol: 'BTCUSDT',
    orderId: XXXXXXXXXX,
    orderListId: -1,
    clientOrderId: 'x-XXXXXXX',
    transactTime: 1641604459213,
    price: '0.00000000',
    origQty: '0.00027000',
    executedQty: '0.00027000',
    cummulativeQuoteQty: '11.39005800',
    status: 'FILLED',
    timeInForce: 'GTC',
    type: 'MARKET',
    side: 'SELL',
    fills: [ [Object] ]
  },
« Last Edit: January 08, 2022, 02:08:42 AM by felixinbali »

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: SpotGrid Advanced Issue
« Reply #2 on: January 09, 2022, 06:36:29 AM »
I checked this with Spot Grid and sometimes it sells a bit less while sometimes sells a bit more... so it's something that doesn't affect in the mid-long term results. Anyway, dev team is already aware of it.

Offline felixinbali

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: SpotGrid Advanced Issue
« Reply #3 on: January 09, 2022, 02:07:30 PM »
Hi Aitor,

thanks for the discussion and support on this and understand what you are saying. I really like this strategy and if this could be improved it would be fantastic.
I'd like the option for CT sells to always sell all units from the related buy order if thats doable.  :)

Cheers

Offline scareaching

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: SpotGrid Advanced Issue
« Reply #4 on: December 14, 2022, 04:09:57 AM »
If possible, I'd like CT sells to always sell all units from the related buy order. I'm hoping for more specific information.