Gamestudio Links
Zorro Links
Newest Posts
A9
by 3run. 07/16/20 13:42
Trouble getting data with IB Gateway
by richs. 07/16/20 13:04
Futures with IB
by jbhunter. 07/16/20 01:08
Maximum Value
by AndrewAMD. 07/15/20 12:50
What are you working on?
by NeoDumont. 07/14/20 23:06
Engine window and DPI scaling
by Dooley. 07/14/20 20:27
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
9 registered members (AndrewAMD, 3run, Nymphodora, kvm, Quad, richs, onoff, Michael_Schwarz, 20BN), 376 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Estripa, nowater, dasanc, DavidFdez, TraderKevin
18478 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Features request on margin trading for crypto brokers #478743
12/07/19 10:42
12/07/19 10:42
Joined: Nov 2019
Posts: 2
R
Ryu Offline OP
Guest
Ryu  Offline OP
Guest
R

Joined: Nov 2019
Posts: 2
From the doc, now zorro's crypto brokers plugin(Binance/Bitfinex/Bittrex) doesn't support margin trading.
If this feature can be supported, that will be great to do crypto margin trading using zorro as well.
So convenient to write strategies and do backtest using zorro.
Thanks in advance.

> Only long positions are supported; for short trades the account must already contain a sufficient position of the asset. Otherwise an error message like INSUFFICIENT FUNDS is issued.

Re: Features request on margin trading for crypto brokers [Re: Ryu] #478750
12/09/19 13:01
12/09/19 13:01
Joined: Jul 2000
Posts: 27,258
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,258
Frankfurt
I believe that's not an issue of the plugin. It depends on whether your account is set up for margin trading or not.

Re: Features request on margin trading for crypto brokers [Re: Ryu] #478757
12/10/19 00:27
12/10/19 00:27
Joined: Nov 2019
Posts: 2
R
Ryu Offline OP
Guest
Ryu  Offline OP
Guest
R

Joined: Nov 2019
Posts: 2
Hi, jcl, let me try to describe this problem more clearly.

Now I am using Binance which has 3 trading accounts:
- Spot: its API endpoint for new order is /api/v3/order
- Margin: its API endpoint for new order is /sapi/v1/margin/order
- Futures: its API endpoint for new order is /fapi/v1/order

An API key can be created to trade for all the above 3 accounts via setting its "API restrictions", like:
- "Enable Margin"
- "Enable Future"

I found that the balance displayed in Zorro is only the balance of Spot account and using "TradeTest" Script to test "Buy Short", it will failed with messages:{ "code":-2010,"msg":"Account has insufficient balance for requested action."}.
And I also created separate keys which were only enabled for Spot or Margin or Future trading.
But they are the same. It seems Zorro Binance plugin only support the Spot API, the same with the Binance Zorro plugin' doc:
> Only long positions are supported; for short trades the account must already contain a sufficient position of the asset. Otherwise an error message like INSUFFICIENT FUNDS is issued.

Has Binance Zorro plugin already implemented the Margin API and Futures API?
Thanks.

Re: Features request on margin trading for crypto brokers [Re: Ryu] #478803
12/21/19 11:53
12/21/19 11:53
Joined: Apr 2019
Posts: 36
Albay
M
marr Offline
Newbie
marr  Offline
Newbie
M

Joined: Apr 2019
Posts: 36
Albay
I also confirm this, I tried to use a script with shorting and got the error message stated above, tho there is some weird cases where it does not produce that error when using one `enterShort()` position. My API is already enabled for margin account. As of now I am currently testing margin account with Binance API, haven't yet opened a short trade so I'll get back how it goes, the error message only shows on some random occasions.

Last edited by marr; 12/21/19 11:59.
Re: Features request on margin trading for crypto brokers [Re: Ryu] #478879
01/04/20 11:07
01/04/20 11:07
Joined: Apr 2008
Posts: 312
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 312
Austria
Me too. Im trading with Binance and would like to use the new margin account.

Re: Features request on margin trading for crypto brokers [Re: Ryu] #478979
01/30/20 09:40
01/30/20 09:40
Joined: Jan 2020
Posts: 1
A
Aweys Offline
Guest
Aweys  Offline
Guest
A

Joined: Jan 2020
Posts: 1
Current Zorro API's do not support margin trading for none of the crypto exchange (Binance, Bittrex, Bitfinex, etc..)
And that is an issue of the plugin's.

Maybe we do have here developers which would be interested in creating plugin's which would support Future or Margin accounts in Bitfinex or any other exchange ?

Re: Features request on margin trading for crypto brokers [Re: Ryu] #479063
02/11/20 12:11
02/11/20 12:11
Joined: Jul 2000
Posts: 27,258
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,258
Frankfurt
Ok, margin trading for the cryptocurrency plugins is on our to do list.

Re: Features request on margin trading for crypto brokers [Re: Ryu] #479902
05/04/20 09:44
05/04/20 09:44
Joined: May 2015
Posts: 267
Czech Republic
G
Grat Offline
Member
Grat  Offline
Member
G

Joined: May 2015
Posts: 267
Czech Republic
I have question,


margin trading is not planned in version 2.26?

Re: Features request on margin trading for crypto brokers [Re: jcl] #480261
05/28/20 23:00
05/28/20 23:00
Joined: May 2020
Posts: 8
Ireland
O
onoff Online
Newbie
onoff  Online
Newbie
O

Joined: May 2020
Posts: 8
Ireland
excellent, any ETA? and any plans for Futures?

Re: Features request on margin trading for crypto brokers [Re: Ryu] #480381
06/03/20 08:49
06/03/20 08:49
Joined: Jul 2000
Posts: 27,258
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,258
Frankfurt
Possibly in the next update, otherwise the next-but-one. And you can already trade crypto futures with IB.

Page 1 of 2 1 2

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1