API Support Forum
User Profile

Viewing User Profile for: RWare2020


About

Feb 11, 2020 03:38 PM

Nov 23, 2020 03:04 PM

Nov 23, 2020 03:04 PM



Post Statistics
RWare2020 has contributed to 44 posts out of 4944 total posts (0.89%) in 287 days (0.00 posts per day).

20 most recent posts:

API Support » GF COM API Options Help Nov 23, 2020 @ 03:04 PM (Total replies: 10)

Right, I know ATM = at the money, but we don't know what strike is closest to the current price without loading the contract first.

API Support » GF COM API Options Help Nov 23, 2020 @ 12:55 PM (Total replies: 10)

Okay thank you, I will implement that.

One more thing, you say if we want the expiration dates for the available contract you say to limit the strike in our request to around ATM. I know ATM is around the current contract price and I can think of some ways to get a rough strike threshold (taking about 1% of the last price seems to get the a good guess as to where ATM is and a good min/max value for the request), but I'm wondering if there is a better way to do it through the API?

Thanks for your help.

API Support » GF COM API Options Help Nov 20, 2020 @ 02:47 PM (Total replies: 10)

Sorry I forgot this line:

builder->WithExpression(exprBuilder->Build());

API Support » GF COM API Options Help Nov 20, 2020 @ 02:32 PM (Total replies: 10)

Thank you I will look into doing that.

This is the contract load request I am using:

GF_Api_COM::IContractLoadRequestBuilderPtr builder;
builder.CreateInstance(__uuidof(GF_Api_COM::ContractLoadRequestBuilder));
IContractLoadExpressionBuilderPtr exprBuilder;
exprBuilder.CreateInstance(__uuidof(GF_Api_COM::ContractLoadExpressionBuilder));
exprBuilder->WithBaseContractID(bc->id);
builder->WithResultCount(1000);
GFApi()->Contracts->Load->request(builder->Build());

API Support » GF COM API Options Help Nov 18, 2020 @ 03:29 PM (Total replies: 10)

Is there a way that I can get the available expiration dates for a given options contract?

API Support » GF COM API Options Help Nov 18, 2020 @ 01:08 PM (Total replies: 10)

That is what I am currently doing. It is just much slower than how the OEC API was doing it so that is causing some grief.

Thanks

API Support » GF COM API Options Help Nov 12, 2020 @ 01:48 PM (Total replies: 10)

I am struggling to find examples on getting options information. There is not much for examples on the COM api in the bitbucket repo and I couldn't seem to find very many options items in the c# advanced examples I could reverse engineer.

I need to get the expiration dates and strikes for each expiration date for each option contract given a specific symbol for example YMZ20 (Dow J. IA, Mini - Dec 2020).

Right now I am doing a contract load request for the option symbol (in YMZ20, I am using OYMZ20) with a result count of 1000 but even after that I am missing option expirations and strikes for those specific option expirations. It seems like to load strikes, I have to do a contract load with a result count of how many strikes I am wanting?

Is there a way I can get the option expiration dates from a symbol lookup request? When I have tried it, I am unable to iterate through the contract's options since the count is 0 because it hasn't been loaded yet is what it seems.

If a contract load of result count 1 only returns one strike for that option expiration, how do you propose we handle something like the S&P that has thousands of strikes?

If someone could point me in the right direction that would be much appreciated.

Thanks.

API Support » ContractLoadRequest Returns in Reverse Order? Oct 27, 2020 @ 01:05 PM (Total replies: 3)

I do use the symbol lookup to view the base contracts, but we show the user all of the available contract months for that base contract.

I would like to be able to show the user at least the front month for that contract, while I am loading the remaining contracts in the background.

For example if I load GLC with a request amount of 1, it returns 2022M instead of the front month.

Is there a way to see all of the contract months for a base contract using the symbol lookup?

API Support » ContractLoadRequest Returns in Reverse Order? Oct 23, 2020 @ 04:36 PM (Total replies: 3)

For the GFAPI COM ContractLoadRequest it seems as though they don't return in order from most recent contract to the further out contracts and I'm wondering if there is a way to force it to return the most recent contracts first?

For example if I were to do just request an amount of 1, it would not return the most recent contract.

Thanks.
Edited by RWare2020 on Oct 23, 2020 04:37 PM

API Support » GFApi Equivalent to OECAPI::RequestContracts Oct 01, 2020 @ 05:39 PM (Total replies: 2)

Okay thank you for the info. I will implement it this way then.

Thanks!

API Support » Spreads MKT Orders Not Filling in Demo or API Oct 01, 2020 @ 05:38 PM (Total replies: 3)

I appreciate you and all of your help. Do you have an ETA of when this will be fixed?
Thanks!

API Support » Spreads MKT Orders Not Filling in Demo or API Sep 28, 2020 @ 06:06 PM (Total replies: 3)

All spread market orders are not filling in the demo server or API server. We need to test while we are migrating over to the new GF api and spreads are not filling so we are not sure if things are working correctly there.

API Support » Unable to Login to API Servers with Failure of Incorrect Username/Password Sep 25, 2020 @ 05:27 PM (Total replies: 3)

Thanks.

API Support » GFApi Equivalent to OECAPI::RequestContracts Sep 24, 2020 @ 06:07 PM (Total replies: 2)

What is the equivalent to the OECAPI call RequestContracts that will give us all of the available contracts for the base contract?

I know there is the Expression Builder and ContractLoadRequestBuilder but with the ContractLoadRequestBuilder you need to specify a result count, how do I just request the max amount of contracts available for the base symbol like what was available in the OECAPI?

Thanks

API Support » Unable to Login to API Servers with Failure of Incorrect Username/Password Sep 24, 2020 @ 05:42 PM (Total replies: 3)

It seems like no matter what the issue is, the failure reason is incorrect username or password.

Trying to login to the sim server, I forgot to change the port and it said my username or password is incorrect.

So I'm not sure if my api server credentials were really incorrect. It might be that my UUID has expired or something.

API Support » Unable to Login to API Servers with Failure of Incorrect Username/Password Sep 24, 2020 @ 05:30 PM (Total replies: 3)

I am unable to login to the api servers using api.gainfutures.com with a failure reason of incorrect username or password. Is there a way I can reset my password? Is it the same credentials as the support forum login info?

I am fairly certain I know what my username and password should be, but they are not working.

Thanks.

API Support » C++ COM Wrapper Error Message when Closing a Position Jul 17, 2020 @ 11:31 AM (Total replies: 3)

I'm very sorry I didn't see this come in, I must not have subscribed to the topic.

After commenting everything out in the AvgPositionChanged the error message does not occur.

API Support » C++ COM Wrapper Error Message when Closing a Position Jul 08, 2020 @ 12:57 PM (Total replies: 3)

When closing a position using the 32 bit C++ COM Wrapper version 1.0.1.47, I am receiving an error message that says the server threw an exception of (RPC_E_SERVERFAULT)

Here is the entire error message when closing a position of ESU20

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at GF.Api.COM.Accounts.IAccountsApiEvents.AvgPositionChanged(IGFComClient client, IAccount account, IPosition contractPosition)
at GF.Api.COM.Accounts.AccountsApi.Native_AvgPositionChanged(IGFClient client, PositionChangedEventArgs e)
at GF.Api.Impl.Events.EventStore.GF.Api.Impl.Events.IRaiseAvgPositionChangedEvent.Raise(Account account, Position contractPosition)
at GF.Api.Impl.Positions.ProcessPosition.c__DisplayClass10_1.b__2()
at GF.Try.Execute(Action action, Action`1 onException)

API Support » C++ COM Wrapper CancelOrder Not Functioning Jul 08, 2020 @ 12:54 PM (Total replies: 37)

Absolutely. I appreciate all of your help, seriously.

API Support » C++ COM Wrapper CancelOrder Not Functioning Jul 08, 2020 @ 12:47 PM (Total replies: 37)

Initial testing there is no crash!

I am getting a rather lengthy error message that says the server threw an exception of (RPC_E_SERVERFAULT)

Here is the entire error message when closing a position of ESU20

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at GF.Api.COM.Accounts.IAccountsApiEvents.AvgPositionChanged(IGFComClient client, IAccount account, IPosition contractPosition)
at GF.Api.COM.Accounts.AccountsApi.Native_AvgPositionChanged(IGFClient client, PositionChangedEventArgs e)
at GF.Api.Impl.Events.EventStore.GF.Api.Impl.Events.IRaiseAvgPositionChangedEvent.Raise(Account account, Position contractPosition)
at GF.Api.Impl.Positions.ProcessPosition.c__DisplayClass10_1.b__2()
at GF.Try.Execute(Action action, Action`1 onException)