Open georgezouq opened 6 years ago
You're correct, if I remember right I noticed this too in an internal branch of this experiment. Each step is a transaction, if you're going to BNB via BNBETH, you'd be buying BNB using ETH. PRs for enhancements & fixes are most welcome if you wish to work on it.
I check the structure of candidate object's attribute
a
,b
andc
. There's atradeInfo
object contentside, symbol, quantity
.I print it in TradeCore and I find
the
side
sames incorrect, If I trade by this, In the first, I sellbnb
buyeth
, then buyqlc
sellbnb
and then sellqlc
buyeth
, eventually, I use 2 timebnb
, get 2 timeeth
(ignore quantity). I think after arbitrage, all trade done. I use 1 bnb should get maybe 1.1 bnb, that 0.1 bnb is profit. But trade by this, its not balance. Or each arbitrage candidate not alone?