Gamestudio Links
Zorro Links
Newest Posts
EUR/USD .t6 for 2019
by kalmar. 01/25/20 22:56
Average Position Up
by AndrewAMD. 01/25/20 17:44
Add safety string functions ("strcpy_s", etc.)
by AndrewAMD. 01/25/20 16:43
Imgui Lite-c Development
by txesmi. 01/23/20 23:26
Warning: Data both split and skipped!
by StefanCGN. 01/22/20 19:10
Simulate complex commission costs [Test]
by AndrewAMD. 01/22/20 13:05
Any Old Timers Still Around?
by Eagle. 01/21/20 21:51
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
2 registered members (AndrewAMD, Dooley), 801 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
andy_sh, dolorado, alterpips, Leohermoso, matchristrading
18360 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
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,095
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

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

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


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