Username: Password:

Author Topic: Error on Binance buy - code: -1013, msg: 'Filter failure: MIN_NOTIONAL'  (Read 24924 times)

Offline monochromatic

  • Rookie
  • *
  • Posts: 8
    • View Profile
I'm trying to run emotionless on Binance with about 10 pairs and am getting an error message when gunbot tries to place an order:

Code: [Select]
buy order opts { symbol: 'LTCBTC',
  side: 'BUY',
  type: 'LIMIT',
  timeInForce: 'IOC',
  quantity: 0.14,
  price: 0.01415,
  timestamp: 1515175461.463 }
Error: Volume must be of stepSize: 0.01000000.
    at errorHandler (/snapshot/gunbot-build/ctx-wrapper.js:0:0)
    at
createBuyOrder
{ code: -1013, msg: 'Filter failure: MIN_NOTIONAL' }

I think the minimum buy on Binance is .001 so I tried raising the TRADING_LIMIT, MIN_VOLUME_TO_BUY, and MIN_VOLUME_TO_SELL all to .002. The LTC buy in this order is 0.14 * 0.01415 = 0.001981, which should be above the minimum limit, yeah?

My emotionless settings:

Code: [Select]
"emotionless": {
            "NAME": "emotionless",
            "TRADING_LIMIT": 0.002,
            "FUNDS_RESERVE": 0.01,
            "PERIOD": 15,
            "BUY_LEVEL": 0.6,
            "GAIN": 0.6,
            "EMA1": 16,
            "EMA2": 8,
            "HIGH_BB": 49,
            "LOW_BB": 49,
            "STDV": 2,
            "SMAPERIOD": 50,
            "PANIC_SELL": false,
            "DOUBLE_UP": true,
            "DOUBLE_UP_CAP": 0.5,
            "STOP_LIMIT": 60,
            "BUY_ENABLED": true,
            "MIN_VOLUME_TO_BUY": 0.002,
            "MIN_VOLUME_TO_SELL": 0.002,
            "TRADES_TIMEOUT": 600,
            "MICROTRADES": true
        },

Any ideas on this error? Thanks.

Offline monochromatic

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: Error on Binance buy - code: -1013, msg: 'Filter failure: MIN_NOTIONAL'
« Reply #1 on: January 05, 2018, 08:34:40 PM »
Update: just found out that Binance increased the minimum buy requirement for some of their coins to .002. Specific coins can be found here: https://www.binance.com/api/v1/exchangeInfo

For example LTCBTC:

Code: [Select]
{"symbol":"LTCBTC","status":"TRADING","baseAsset":"LTC","baseAssetPrecision":8,"quoteAsset":"BTC","quotePrecision":8,"orderTypes":["LIMIT","LIMIT_MAKER","MARKET","STOP_LOSS_LIMIT","TAKE_PROFIT_LIMIT"],"icebergAllowed":true,"filters":[{"filterType":"PRICE_FILTER","minPrice":"0.00000100","maxPrice":"100000.00000000","tickSize":"0.00000100"},{"filterType":"LOT_SIZE","minQty":"0.01000000","maxQty":"100000.00000000","stepSize":"0.01000000"},{"filterType":"MIN_NOTIONAL","minNotional":"0.00200000"}]}

So my buy order of 0.001981 was being rejected. I've increased my minimum buy orders to 0.0025, we'll see if that works.

Offline yoshilee

  • Rookie
  • *
  • Posts: 42
    • View Profile
Re: Error on Binance buy - code: -1013, msg: 'Filter failure: MIN_NOTIONAL'
« Reply #2 on: January 05, 2018, 10:00:46 PM »
By the way, i am setting up my binance to start soon. Does the bug, that there is no trading without history, occur on all strategies there?

Offline monochromatic

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: Error on Binance buy - code: -1013, msg: 'Filter failure: MIN_NOTIONAL'
« Reply #3 on: January 05, 2018, 11:13:43 PM »
Quote
By the way, i am setting up my binance to start soon. Does the bug, that there is no trading without history, occur on all strategies there?

Can you tell me more about that bug? I wonder if I'm experiencing it too. My gunbot 7.0.2 can't run more than 5 minutes without freezing, has only made a couple of buys, and no sells at all.

Offline yoshilee

  • Rookie
  • *
  • Posts: 42
    • View Profile
Re: Error on Binance buy - code: -1013, msg: 'Filter failure: MIN_NOTIONAL'
« Reply #4 on: January 06, 2018, 12:49:45 PM »
Not really, i just read a bit in telegram group. It seems that if an altcoin got no trade-history there could be issues with GB. I think the "solution" was to manually buy a coin to get things rollin.
But you should read/ask more about in telegram group. A lot of people there are already in binance.

Offline monochromatic

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: Error on Binance buy - code: -1013, msg: 'Filter failure: MIN_NOTIONAL'
« Reply #5 on: January 06, 2018, 07:30:20 PM »
I think there may also be a problem with the emotionless strategy and binance. i switched to bb strategy and things are working much better.