You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
hi @spapapan
Whether you are buying or you are selling - it depends on the market symbol.
on a market there is usually a base asset and there is asset that you are trading against.
When you are looking at ETHBTC market symbol, that means ETH would be bought. and ETH would be sold - and the last part of the symbol is the base asset.
so, if you want to buy ETH for BTC, you are doing
new BinanceOrderPlacement(new BinanceSymbol("ETHBTC"), BinanceOrderSide.BUY);
and if you want to sell ETH for BTC, you are doing
new BinanceOrderPlacement(new BinanceSymbol("ETHBTC"), BinanceOrderSide.SELL);
Hope that makes it a bit more clear for you
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In your code example you explain how to trade BTC with ETH, but how to trade ETH with BTC?
The text was updated successfully, but these errors were encountered: