Closed cryptoeax closed 6 years ago
@Scorpic1 do you have other similar examples by any chance?
@Scorpic1 do you have other similar examples by any chance?
12:21:16: TRADING LBC-BTC FROM POLONIEX TO BITTREX
= FUNDS ============================================
SOURCE : 0.02291558 BTC
TARGET : 301.77281291 LBC
= SIMULATION =======================================
TARGET MAX : 301.77281291
SOURCE MAX : 220.94564737
BUY RATE : 0.00004526
BUY AMOUNT : 220.94564737
BUY PRICE : 0.01002500
SELL RATE : 0.00004600
SELL AMOUNT : 220.93564737
SELL PRICE : 0.01013763
PROFIT : 0.00011263
= TRADE ============================================
SELL ORDER : 220.93564737 LBC @ 0.00004485 BTC
BUY ORDER : 220.94564737 LBC @ 0.00004639 BTC
12:21:17: Placed sell order (BITTREX ID: c22b138a-2315-4a9c-8df0-3a63085420ec)
12:21:18: Placed buy order (POLONIEX ID: BTC_LBC:29179851107)
12:21:18: Waiting for order execution...
12:22:18: [BITTREX] Cancelling order c22b138a-2315-4a9c-8df0-3a63085420ec
12:22:25: [POLONIEX] Cancelling order BTC_LBC:29179851107
12:22:27: Checking trade results (1)...
12:22:31: Received 158.28705072 LBC from the exchange while our wallets show a balance difference of 220.39328326 (220.39328326 - 0.00000000 finished deposits)
12:22:31: WARNING: Got an unrelated trade while trying to perfrom post-trade tasks: %s of %.8f %s at %.8f, saved but will ignore
12:22:34: Received 220.93564737 LBC from the exchange while our wallets show a balance difference of 220.93564737 (220.93564737 - 0.00000000 finished deposits)
12:22:37: TRADE SUMMARY:
PAIR: LBC vs BTC
DIRECTION: POLONIEX TO BITTREX
BALANCES BEFORE / AFTER
POLONIEX:
LBC: 0.00000000 => 220.39328326 = 220.39328326
BTC: 0.02291558 => 0.02231271 = -0.00060287
BITTREX:
LBC: 0.02777767 => 80.83716554 = -220.93564737
BTC: 0.02777767 => 0.03784918 = 0.01007151
TOTAL:
BTC: 0.00946864
LBC: -0.54236411
LBC(-tx) : -0.55236411
(Transfer fee is 0.01000000)
12:22:37: Calculated P&L: 0.00946772
12:22:37: Transfering 220.94564737 LBC POLONIEX => BITTREX
Bot sell 220.39328326 LBC on Bittrex and buy on Poloniex in two order 13.28705072 LBC + 207.65859665 LBC
History trade from Poloniex:
Market | Type | Category | Price/Share | Amount | Fee | Total | Transaction Date | |
---|---|---|---|---|---|---|---|---|
LBC/BTC | Buy | Exchange | 0.00004526 | 207.65859665 | 0.51914649 LBC (0.25%) | 0.00939862 BTC | 2017-12-20 12:21:17 | |
LBC/BTC | Buy | Exchange | 0.00004526 | 13.28705072 | 0.03321763 LBC (0.25%) | 0.00060137 BTC | 2017-12-20 12:21:17 |
History trade from Bittrex
CLOSED DATE | OPENED DATE | TYPE | BID/ASK | UNITS FILLED LBC | UNITS TOTAL LBC | ACTUAL RATE | COST / PROCEEDS |
---|---|---|---|---|---|---|---|
12/20/2017 03:21:18 PM | 12/20/2017 03:21:18 PM | Limit Sell | 0.00004485 | 220.93564737 | 220.93564737 | 0.00004569 | 0.01007151 |
P&L from bot:
Date | Coin | Source | Target | Amount | Bought | Sold | Revenue | Tx Fee | Profit/Loss |
---|---|---|---|---|---|---|---|---|---|
2017-12-20 15:22:37 | LBC | PLNX | BTTRX | 220.93564737 | 0.00060137 | 0.01009675 | 0.00949538 | 0.02000000 | 0.00946772 |
I see calculate is not correct.
12:22:31: WARNING: Got an unrelated trade while trying to perfrom post-trade tasks: %s of %.8f %s at %.8f, saved but will ignore
what does this message mean?
Thanks.
Thanks!
That message is a debug log output that basically tells me the trade matching engine isn't 100% bullet-proof yet. :-) But it's mostly harmless. I have fixed the bot to emit a proper message without the "%" garbage in it but this message was logged when you were running an older buggy version of the bot.
All side effects of testing a non-stable branch, but they're all benign and nothing to worry about. Thanks for sticking with me. :-)
This should now be fixed on the pl-rewrite
branch.
From https://gitter.im/cryptoeax-arbbot/Lobby?at=5a39ea0200d569114bc90165: