Hi
Just recently started playing with the API-NG so apologies for the very basic questions.
Q1) I have got the C# Betfair example working OK, but I am having trouble understanding the login mechanism. I am using the interactive login, but I cant seem to find any related code to logging in within the C# Source (Apart from it uses the Appkey/password/token in the header section of each command). This page didn't seem to tally with that example codehttps://api.developer.betfair.com/se...-+API+Endpoint so didn't help my understanding.
Can anyone take a few moments to explain the NG login mechanism please?
Q2 Related to Q1. I have got the session token for login by peeking in Firefox for the cookie string, and then pasting that manually into the source code and compiling. This is explained on several pages, but I cant seem to find any docs as to how I should get the session token programmatically at login time ?
Does anyone have a link to explain how to do that please, or a pointer to some example code ?
Q3. Is there any call back mechanism, so I can tell when a bet order has been matched ? I know how to do this by polling with the listCurrentOrders command. But is there a more efficient, less comms intensive mode where I don't need to poll and the Server initiates sending a packet when it gets matched ? I am guessing there isn't but thought I would check ?
Thanks for any help
Regards Geoff
Just recently started playing with the API-NG so apologies for the very basic questions.
Q1) I have got the C# Betfair example working OK, but I am having trouble understanding the login mechanism. I am using the interactive login, but I cant seem to find any related code to logging in within the C# Source (Apart from it uses the Appkey/password/token in the header section of each command). This page didn't seem to tally with that example codehttps://api.developer.betfair.com/se...-+API+Endpoint so didn't help my understanding.
Can anyone take a few moments to explain the NG login mechanism please?
Q2 Related to Q1. I have got the session token for login by peeking in Firefox for the cookie string, and then pasting that manually into the source code and compiling. This is explained on several pages, but I cant seem to find any docs as to how I should get the session token programmatically at login time ?
Does anyone have a link to explain how to do that please, or a pointer to some example code ?
Q3. Is there any call back mechanism, so I can tell when a bet order has been matched ? I know how to do this by polling with the listCurrentOrders command. But is there a more efficient, less comms intensive mode where I don't need to poll and the Server initiates sending a packet when it gets matched ? I am guessing there isn't but thought I would check ?
Thanks for any help
Regards Geoff


Comment