Gamestudio Links
Zorro Links
Newest Posts
Help with Data import to T1
by AndrewAMD
45 minutes 48 seconds ago
Using ":L" & ":S" causes 2 possible bug(s) or is it bad coding?
by AndrewAMD
Today at 03:54
Correlation -1.#IND00
by AndrewAMD
01/21/19 17:37
Basic thread safety question
by Superku
01/20/19 18:15
Blog Post: Get Historical Data from Darwinex REST API w/ Zorro
by AndrewAMD
01/19/19 22:19
Reseting a static variable - the next day
by OptimusPrime
01/19/19 19:48
Train algorithms separatery
by 3dgamelight
01/18/19 10:37
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
12 registered (Iglarion, AndrewAMD, Michael_Schwarz, ags, chsmac85, kvm, ibne, alibaba, 3 invisible), 431 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
laz, ramonne, SibJac, Evael, NRW
18156 Registered Users
Topic Options
Rate This Topic
#473010 - 06/08/18 17:45 Oanda Margin error
tnktnns Offline
Guest

Registered: 12/22/16
Posts: 4
Hi everybody, I've been having trouble getting Zorro to activate even just 1 single trade with Oanda.
For some reason, as seen in this error message from running the TradeTest script, whenever Zorro tries to make a trade Oanda sends back an error saying my account has "Insufficient Margin"?
This is weird considering even trying to buy just 1 Unit of an instrument produces this response.
Quote:

Buy Long EUR/JPY
!Order: {"orderCreateTransaction":{"type":"MARKET_ORDER","instrument":"EUR_JPY","units":"1","timeInForce":"FOK","positionFill":"DEFAULT","reason":"CLIENT_ORDER","id":"259","userID":1450674,"accountID":"001-001-1450674-002","batchID":"259","requestID":"96482867575027876","time":"2018-06-08T15:28:34.475380373Z"},"orderCancelTransaction":{"type":"ORDER_CANCEL","orderID":"259","reason":"INSUFFICIENT_MARGIN","id":"260","userID":1450674,"accountID":"001-001-1450674-002","batchID":"259","requestID":"96482867575027876","time":"2018-06-08T15:28:34.475380373Z"},"relatedTransactionIDs":["259","260"],"lastTransactionID":"260"}
Error 075 ((EUR/JPY::L)): Can't open 1@128.76 at 15:28:35


What's going on? Have I set up something wrong? is there something I forgot to do?

I appreciate any help!


Edited by tnktnns (06/08/18 17:46)

Top
#473054 - 06/11/18 16:34 Re: Oanda Margin error [Re: tnktnns]
Spirit Offline
Moderator

Registered: 09/02/03
Posts: 802
"insufficient margin" means you must have enough capital on your account before you can trade.

Top
#473114 - 06/14/18 10:25 Re: Oanda Margin error [Re: Spirit]
tnktnns Offline
Guest

Registered: 12/22/16
Posts: 4
i put $2500 in my Oanda account to play around with, is that not enough?

thanks for the reply

Top
#473125 - 06/15/18 15:41 Re: Oanda Margin error [Re: tnktnns]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26694
Loc: Frankfurt
Check if it's the right account; maybe it was a subaccount. If in doubt, contact Oanda support - they should be able to help.

Top
#473182 - 06/19/18 10:48 Re: Oanda Margin error [Re: jcl]
tnktnns Offline
Guest

Registered: 12/22/16
Posts: 4
Ah ha! That seems to be what's wrong: Zorro is trying to connect to my empty MT4 subaccount. Thanks a lot for the tip!

My question now, however, is how to direct Zorro to my primary account? Is there a separate/unique access token I need?

thanks again

Top
#473183 - 06/19/18 11:15 Re: Oanda Margin error [Re: tnktnns]
MatPed Offline
User

Registered: 02/28/15
Posts: 525
Loc: Milano, Italy
If you use the api, just set the proper account number e the api key. Check the manual at the Oanda Plugin section.
Ciao

Top
#473203 - 06/21/18 11:29 Re: Oanda Margin error [Re: MatPed]
tnktnns Offline
Guest

Registered: 12/22/16
Posts: 4
Oh yeah That worked! i always thought the User field on Zorro was meant only for the general broker Username.

Thanks everybody for the help!

Top



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

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