Oanda Margin error

Posted By: tnktnns

Oanda Margin error - 06/08/18 15:45

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!
Posted By: Spirit

Re: Oanda Margin error - 06/11/18 14:34

"insufficient margin" means you must have enough capital on your account before you can trade.
Posted By: tnktnns

Re: Oanda Margin error - 06/14/18 08:25

i put $2500 in my Oanda account to play around with, is that not enough?

thanks for the reply
Posted By: jcl

Re: Oanda Margin error - 06/15/18 13:41

Check if it's the right account; maybe it was a subaccount. If in doubt, contact Oanda support - they should be able to help.
Posted By: tnktnns

Re: Oanda Margin error - 06/19/18 08:48

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
Posted By: MatPed

Re: Oanda Margin error - 06/19/18 09:15

If you use the api, just set the proper account number e the api key. Check the manual at the Oanda Plugin section.
Ciao
Posted By: tnktnns

Re: Oanda Margin error - 06/21/18 09:29

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!
© 2024 lite-C Forums