Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is tradeInfo object correct? #52

Open
georgezouq opened this issue Jun 30, 2018 · 1 comment
Open

Is tradeInfo object correct? #52

georgezouq opened this issue Jun 30, 2018 · 1 comment

Comments

@georgezouq
Copy link

I check the structure of candidate object's attribute a, b and c. There's a tradeInfo object content side, symbol, quantity.

screen shot 2018-06-30 at 12 37 25 pm

I print it in TradeCore and I find

screen shot 2018-06-30 at 12 25 31 pm

the side sames incorrect, If I trade by this, In the first, I sell bnb buy eth, then buy qlc sell bnb and then sell qlc buy eth, eventually, I use 2 time bnb, get 2 time eth(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?

@tiagosiebler
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants