BlockchainWhispers / trailingstoploss3

26 stars 18 forks source link

After some time the order disappears #6

Open mamar-extenda opened 6 years ago

mamar-extenda commented 6 years ago

I am using Arch Linux, Node 10.4.0, Chrome After the order has been updating ok for a couple of hours, when I checked again the order disappeared from both traillingstoploss3 UI and from my binance account. I changed the VPN a couple of times so the program might have experienced some network interruption. Analyzing the logs I see that the Transaction Status goes from NEW to CANCELED. Here are the relevant logs:

Job pair: QSPBTC
Job status: UPDATED
QSPBTC order status: { symbol: 'QSPBTC',
  orderId: 17805101,
  clientOrderId: 'yDM4RdSyw8c4DN2f0GIkiU',
  price: '0.00001911',
  origQty: '60.00000000',
  executedQty: '0.00000000',
  status: 'NEW',
  timeInForce: 'GTC',
  type: 'STOP_LOSS_LIMIT',
  side: 'SELL',
  stopPrice: '0.00001911',
  icebergQty: '0.00000000',
  time: 1528466083449,
  isWorking: false }
Lazy price has changed to: 0.00002114
QSPBTC cancel response: { symbol: 'QSPBTC',
  origClientOrderId: 'yDM4RdSyw8c4DN2f0GIkiU',
  orderId: 17805101,
  clientOrderId: 'EU1eABIj6TZ2zltQcYUaXg' }
Job pair: QSPBTC
Job status: ERROR
QSPBTC order status: { symbol: 'QSPBTC',
  orderId: 17805101,
  clientOrderId: 'yDM4RdSyw8c4DN2f0GIkiU',
  price: '0.00001911',
  origQty: '60.00000000',
  executedQty: '0.00000000',
  status: 'CANCELED',
  timeInForce: 'GTC',
  type: 'STOP_LOSS_LIMIT',
  side: 'SELL',
  stopPrice: '0.00001911',
  icebergQty: '0.00000000',
  time: 1528466083449,
  isWorking: false }
[ 'WebSocket terminated:', 'qspbtc@kline_5m' ]
[ 'WebSocket closed: qspbtc@kline_5m (1006)' ]
csb77 commented 6 years ago

Ah yes it seems you terminated the websocket connection when using the VPN.

csb77 commented 6 years ago

Does this issue happen when not messing around with IPs ?