Confused between broker.Position method #8
-
Hello, I am confused with the broker.Position method used in the code in example/strategy.go What does it return? I am not getting this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In the pair Do you have a suggestion for a better name? Investopedia uses |
Beta Was this translation helpful? Give feedback.
Hi @nitishkumargupta,
In the pair
BTCUSDT
, the asset is BTC and the quote is USDT (BTC is quoted in USDT), i.e. you are buying/selling BTC with the base coin in USDT.Sometimes trades use other coins as quotes. For example ETHBTC, the asset is ETH and the quote is BTC.
Do you have a suggestion for a better name?
Investopedia uses
base
andquote
: https://www.investopedia.com/terms/c/currencypair.asp