ctubio / tribeca

Self-hosted crypto trading bot (automated high frequency market making) in node.js, angular, typescript and c++
https://127.0.0.1:3000
Other
95 stars 26 forks source link

Bitfinex Margin trading ! #101

Closed Camille92 closed 7 years ago

Camille92 commented 7 years ago

Hello again,

Maybe can be interesting to enable margin trading on bitfinex.

The only difference is:

"Trading pairs symbols are formed prepending a "t" before the pair (i.e tBTCUSD, tETHUSD). Margin currencies symbols are formed prepending a "f" before the currency (i.e fUSD, fBTC, ...)".

Then we would chose in "exchange name" in the conf file either "Bitfinex" or "Bitfinex_margin".

ctubio commented 7 years ago

awesome'¡ will look at it soOn''

ctubio commented 7 years ago

mm.. seems it have more differences, for example the new symbol is fUSD, and previously we had tBTCUSD, i mean there is only 1 currency not 2 xD

soo.. in the configs, instead of : "TradedPair": "BTC/USD", we should have: "TradedPair": "USD", ?

if so, we can maybe keep the same exchange name, and detect if is margin trading if there is no / symbol in the tradepair value