API Support Forum
OEC API > API Support > Spot FOREX
Author Topic: Spot FOREX
(6 messages, Page 1 of 1)
Moderators: VPfau
FFred58
Posts: 8
Joined: May 19, 2009


Posted: Oct 20, 2009 @ 02:23 PM             Msg. 1 of 6
Does the OEC API support Spot FOREX trading?

Also, can I subscribe to "tick" events from the API?

I do not seem to find a way to do either, so I'm wondering if the API is for futures only...

Fred Baptiste
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Oct 20, 2009 @ 02:47 PM             Msg. 2 of 6
Please use SubscribeTicks method and OnTicksReceved event.
OEC API works same way for all contract types.
FFred58
Posts: 8
Joined: May 19, 2009


Posted: Oct 20, 2009 @ 03:06 PM             Msg. 3 of 6
But how do I get the base contract (e.g. EURJPY, or USDJPY, etc) for the spot FOREX...

I do not see that symbol in the contracts list. When I choose FX for the Group, I do not get any base contracts like I do when I choose a Group of Indices for example...

Here is what I am trying to do:
- Retrieve Groups using OEC.API.ContractGroup
- Retrieve Base Contracts using: OEC.API.OECClient.Global.ContractGroups(myGroup.ID).BaseContracts
- Subscribe to the OnContractsChanged event.

However, choosing FX as the Group (ID=43) does not get me any base contracts...

Fred Baptiste
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Oct 20, 2009 @ 03:38 PM             Msg. 4 of 6
Do you have a FX account assigned to your username?
FFred58
Posts: 8
Joined: May 19, 2009


Posted: Oct 20, 2009 @ 03:45 PM             Msg. 5 of 6
Not that I'm aware of. How would I go about getting that?
Thanks.

Fred Baptiste
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Oct 20, 2009 @ 03:49 PM             Msg. 6 of 6
You need to contact Customer Service with request to open FX account.