Username: Password:

Author Topic: Status: Expired, sometimes bought sometimes not and consequences  (Read 10199 times)

Offline bitcoin1502

  • Rookie
  • *
  • Posts: 1
    • View Profile
I just noticed some strange things when the bot is trying to buy coins with "status: expired".

Here the bot buys MTL, even though it says "status: expired".

Code: [Select]
GBXT_v7.0.2 BTC-MTL Round # 4
------------------------------------------------------------------------------------------------
 ɢՍÑß๏ͳ XT Edition  Scanning binance for trading opportunities 2018/01/21 22:06:34
------------------------------------------------------------------------------------------------
Last trade P/L for BTC-MTL was: 0.000 %
product info: { minPrice: '0.00000100',
  maxPrice: '100000.00000000',
  minQty: '0.01000000',
  maxQty: '10000000.00000000',
  stepSize: '0.01000000',
  minNotional: '0.00200000' }
Original price: 0.00048
Original volume: 12.5
Rounded price: 0.00048
Rounded volume: 12.5
Order value: 0.006
Buy Order Opts: { symbol: 'MTLBTC',
  side: 'BUY',
  type: 'LIMIT',
  timeInForce: 'IOC',
  quantity: 12.5,
  price: 0.00048,
  timestamp: 1516572413589 }
{ symbol: 'MTLBTC',
  orderId: 4993579,
  clientOrderId: 'Vj66wGMzvGlCXwACaTTj68',
  transactTime: 1516572422602,
  price: '0.00048000',
  origQty: '12.50000000',
  executedQty: '9.63000000',
  status: 'EXPIRED',
  timeInForce: 'IOC',
  type: 'LIMIT',
  side: 'BUY' }
┌───────────────────┬─────────────┬────────────────────────┬────────────────────────┬─────────┬────────────┬─────┬─────────┐
│ ɢƱҊß๏Ł XT Edition │ LowBB       │ HighBB                 │ Buy at                 │ Last    │ BTC        │ MTL │ Pair    │
├───────────────────┼─────────────┼────────────────────────┼────────────────────────┼─────────┼────────────┼─────┼─────────┤
│ Buy cycle         │ 0.00046001  │ 0.00054867             │ 0.00048232147730009687 │ 0.00048 │ 0.04284784 │ 0   │ BTC-MTL │
├───────────────────┼─────────────┼────────────────────────┼────────────────────────┼─────────┼────────────┼─────┼─────────┤
│ Callbacks         │ Time to buy │ 0.00048232147730009687 │ BTC-MTL                │         │            │     │         │
├───────────────────┼─────────────┼────────────────────────┼────────────────────────┼─────────┼────────────┴─────┴─────────┤
│ BOUGHT!!!         │ Amount:     │ 12.50000000            │ Rate:                  │ 0.00048 │                            │
└───────────────────┴─────────────┴────────────────────────┴────────────────────────┴─────────┴────────────────────────────┘

6 minutes later, the log states the following.

Code: [Select]
GBXT_v7.0.2 BTC-MTL Round # 5
------------------------------------------------------------------------------------------------
 ɢՍҊɮ۝Ŧ XT Edition  Scanning binance for trading opportunities 2018/01/21 22:12:28
------------------------------------------------------------------------------------------------
Last trade P/L for BTC-MTL was: 0.000 %
************************************************************************************************
Waiting to trade...Safety Switch is on...
************************************************************************************************

as well as 10 minutes in total after the first buy.

This seems strange to me, as I left the timeout buy/sell at the default 60000 miliseconds, which is 1 minute so in my opinion there should not be any Safety Switch, or should there be?

Code: [Select]
GBXT_v7.0.2 BTC-MTL Round # 6
------------------------------------------------------------------------------------------------
 ɢՍƝß۝Ł XT Edition  Scanning binance for trading opportunities 2018/01/21 22:16:28
------------------------------------------------------------------------------------------------
Last trade P/L for BTC-MTL was: 0.000 %
************************************************************************************************
Waiting to trade...Safety Switch is on...
************************************************************************************************

the next round, 17 minutes in total after the buy, it gives the following message. Not sure what this means, but it looks like the bot doesn't know it bought the coin, isn't it?

Quote
GBXT_v7.0.2 BTC-MTL Round # 7
------------------------------------------------------------------------------------------------
 ɢƱͶɮøŁ XT Edition  Scanning binance for trading opportunities 2018/01/21 22:23:31
------------------------------------------------------------------------------------------------
Last trade P/L for BTC-MTL was: 0.000 %
All good...keep calm and Gunbot.



Then there is also another coin bought, also with "status: expired", but this one has a very different behaviour.

First there is the same message as when the bot bough MTL, but in this case the coins are NOT bought for some reason.

Code: [Select]
GBXT_v7.0.2 BTC-OMG Round # 4
------------------------------------------------------------------------------------------------
 ɢՍΠßʘŁ XT Edition  Scanning binance for trading opportunities 2018/01/21 22:07:18
------------------------------------------------------------------------------------------------
Last trade P/L for BTC-OMG was: 0.3347 %
product info: { minPrice: '0.00000100',
  maxPrice: '100000.00000000',
  minQty: '0.01000000',
  maxQty: '10000000.00000000',
  stepSize: '0.01000000',
  minNotional: '0.00200000' }
Original price: 0.001458
Original volume: 4.11522633744856
Rounded price: 0.001458
Rounded volume: 4.11
Order value: 0.005992380000000001
Buy Order Opts: { symbol: 'OMGBTC',
  side: 'BUY',
  type: 'LIMIT',
  timeInForce: 'IOC',
  quantity: 4.11,
  price: 0.001458,
  timestamp: 1516572454789 }
{ symbol: 'OMGBTC',
  orderId: 9639455,
  clientOrderId: 'rcWfCr0VVigdYfbcJX0uWo',
  transactTime: 1516572463825,
  price: '0.00145800',
  origQty: '4.11000000',
  executedQty: '0.00000000',
  status: 'EXPIRED',
  timeInForce: 'IOC',
  type: 'LIMIT',
  side: 'BUY' }
┌───────────────────┬─────────────┬───────────────────────┬───────────────────────┬──────────┬────────────┬─────┬─────────┐
│ ɢՍŋƁØŦ XT Edition │ LowBB       │ HighBB                │ Buy at                │ Last     │ BTC        │ OMG │ Pair    │
├───────────────────┼─────────────┼───────────────────────┼───────────────────────┼──────────┼────────────┼─────┼─────────┤
│ Buy cycle         │ 0.00145932  │ 0.00152232            │ 0.0014590253745195919 │ 0.001458 │ 0.03822544 │ 0   │ BTC-OMG │
├───────────────────┼─────────────┼───────────────────────┼───────────────────────┼──────────┼────────────┼─────┼─────────┤
│ Callbacks         │ Time to buy │ 0.0014590253745195919 │ BTC-OMG               │          │            │     │         │
├───────────────────┼─────────────┼───────────────────────┼───────────────────────┼──────────┼────────────┴─────┴─────────┤
│ BOUGHT!!!         │ Amount:     │ 4.11522634            │ Rate:                 │ 0.001458 │                            │
└───────────────────┴─────────────┴───────────────────────┴───────────────────────┴──────────┴────────────────────────────┘

The next round it looks like the bot thinks it actually bought the coin and is waiting for open orders.

Code: [Select]
GBXT_v7.0.2 BTC-OMG Round # 5
------------------------------------------------------------------------------------------------
 ɢƱƝɮ۝ͳ XT Edition  Scanning binance for trading opportunities 2018/01/21 22:12:45
------------------------------------------------------------------------------------------------
Last trade P/L for BTC-OMG was: 0.3347 %
┌───────────────────┬─────────────────────┬─────────────────────────┬──────────────┬─────────┐
│ ɢՍҊɮʘŁ XT Edition │ SMA                 │ LowBB                   │ HighBB       │ Pair    │
├───────────────────┼─────────────────────┼─────────────────────────┼──────────────┼─────────┤
│ Buy cycle         │ 0.00149082          │ 0.0014593222            │ 0.0015223178 │ BTC-OMG │
├───────────────────┼─────────────────────┼─────────────────────────┼──────────────┼─────────┤
│ GUNBOT CALLBACK   │ 2018/01/21 22:12:52 │ Waiting for open orders │              │         │
└───────────────────┴─────────────────────┴─────────────────────────┴──────────────┴─────────┘

This "Waiting for open orders" seems to stay there indefinitely, as 11 rounds further, it is still "Waiting for open orders" while the bot never actually bought the coins.

Code: [Select]
ɢƱŋɃõŁ XT Edition  Scanning binance for trading opportunities 2018/01/21 23:14:39
------------------------------------------------------------------------------------------------
Last trade P/L for BTC-OMG was: 0.3347 %
┌───────────────────┬─────────────────────┬─────────────────────────┬──────────────┬─────────┐
│ ɢՍҊβøŦ XT Edition │ SMA                 │ LowBB                   │ HighBB       │ Pair    │
├───────────────────┼─────────────────────┼─────────────────────────┼──────────────┼─────────┤
│ Buy cycle         │ 0.00148908          │ 0.0014568263            │ 0.0015213337 │ BTC-OMG │
├───────────────────┼─────────────────────┼─────────────────────────┼──────────────┼─────────┤
│ GUNBOT CALLBACK   │ 2018/01/21 23:14:56 │ Waiting for open orders │              │         │
└───────────────────┴─────────────────────┴─────────────────────────┴──────────────┴─────────┘

Can you please have a look at this behaviour?