Bitfinex margin orders
See original GitHub issueI noticed that for Bitfinex you do this to “type”:
let order = {
'symbol': this.marketId (market),
'amount': amount.toString (),
'side': side,
'type': 'exchange ' + type,
'ocoorder': false,
'buy_price_oco': 0,
'sell_price_oco': 0,
};
thus allowing only exchange orders (and not margin orders). Is there a reason for this? I didn’t check, but I think that “type” is exchange-specific anyway, so why not just let use margin types or exchange types using the corresponding string?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to open/close a margin position at Bitfinex
1. When trading on margin, firstly, make sure that your funds are in your Margin wallet. · 2. Next, go to the Trading...
Read more >Features - Bitfinex
Bitfinex allows users to trade with up to 10x leverage by receiving funding from the peer to peer margin funding platform. Users can...
Read more >What is Margin Funding – Bitfinex Help Center
Funding fees would be 15.0% of the fees generated by the Margin Funding order, or 18.0% if the funding offer was a hidden...
Read more >How to claim a margin position on Bitfinex
1. Firstly, find the position you would like to claim in your Positions widget. · 2. Check your wallets to ensure that you...
Read more >Margin Funding on Bitfinex
How to use Bitfinex Margin Funding · Step 1: Make a deposit · Step 2: Move funds to Funding Wallet · Step 3:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
HI @kroitor Thanks for the answer, it’s clear now, but I would NEVER have guessed it. I just created a pull request with a suggestion to document this feature (didn’t test it though…)
Hi, @danmaz74 !
Thanks for your question!
Here’s the answer: we use that by default, but we allow you to override the type and trade with margin orders as well. Notice, there’s the last argument to the createOrder named
params = {}
. Also notice, that below that code you copied here, there’s a line doingthis.extend (order, params)
:The
params
object is empty by default, but you can use it to set the type as you want it, like so:The
params
argument is supported by all methods for order placement, including, createMarketSellOrder, createLimitBuyOrder, etc…Is that ok for an answer? ) If so, please, close this issue, and if not, I’m waiting for your further questions ) Thx!