Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
Deeplearning Script
by wolfi. 02/26/24 12:46
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/22/24 16:22
AssetAdd() vs. modern asset list?
by jcl. 02/21/24 15:01
How many still using A8
by Aku_Aku. 02/20/24 12:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 521 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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: 48
Albay
M
marr Offline
Newbie
marr  Offline
Newbie
M

Joined: Apr 2019
Posts: 48
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: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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: 390
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 390
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: 9
Ireland
O
onoff Offline
Newbie
onoff  Offline
Newbie
O

Joined: May 2020
Posts: 9
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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