As I have purchased API , I am trying to send bet using fairlay sample client API (C# language) , I am using changeOrders function and getting error "XError:Wrong Signature" .
The sample client does everything for you. Just follow the steps outlined in the readme file of the C# sample client.
I have download sample client , replace the API ID in config file , generate public and private keys using configdet class and then call changeorders function , and got error "XError:Wrong Signature" , am i missing something?
Did you set your User ID and API ID? User ID should be something like 1007776 and API ID is usually 1.
Please send us the request you are sending and your public key in a support ticket and we will assist you.
Yes I have set User ID and API ID but i am getting error from makeReq function.
i am getting ret = "XError:Wrong Signature" after execution of below line in makeReq function.
string ret = _Client.DoRequestAndVerify(Config.SERVERIP, Config.PORT, param, SERVERKEY);
here,
Config.SERVERIP = 31.172.83.53
Config.PORT = 18017
param = 1109|[{"Mid":113367090772,"Rid":1,"Oid":-1,"Am":3.0,"Pri":3.0,"Sub":"Lizette Cabrera vs. Jennifer Brady","Type":1,"Boa":1,"Mct":0,"LayAsL":false,"CAt":0,"Res":null}]
SERVERKEY =
udnE0+F2lSFLJs3wyQT/2W53juqh1hW9NaEwWMfefkV8FHUJTgJQINBrvja/Ii6i1W2ptBhNjin63K0stJmFArdi74TTL0KoTlBpZ3x0r4SQZGX+ZoryO5NFa4UB7NbYvKJxZHnjnFJiNtnf08rOmgdtDbukHnaVm7m067V+dyk=AQABIn DoRequestAndVerify function ,
below line is executed.
answer = DoRequest(ip, port, str, 2, SymmKey);
here,
ip = 31.172.83.53
port = 18017
str = 1109|[{"Mid":113367090772,"Rid":1,"Oid":-1,"Am":3.0,"Pri":3.0,"Sub":"Lizette Cabrera vs. Jennifer Brady","Type":1,"Boa":1,"Mct":0,"LayAsL":false,"CAt":0,"Res":null}]
SymmKey = null
I got answer =
laF+kF9lPofO98By+sW5fO5hHNYNuII36476I6rk6q2TGJuOoYcPqwkUNgeRi9RzEZBaszPDx+Ojz0vMUVnhFw3V/JGU2xca+s9sixHA35rUHw9vCFg4nUChGR0v8AbIFceKDaUG6Fw/HLyZ0D8Q3Wrty0Byjgfubd4+R7Diu10=|636375286955229266|66|XError:Wrong Signature
see there is "XError:Wrong Signature" at last in above result( laF+kF9lPofO98By+sW5fO5hHNYNuII36476I6rk6q2TGJuOoYcPqwkUNgeRi9RzEZBaszPDx+Ojz0vMUVnhFw3V/JGU2xca+s9sixHA35rUHw9vCFg4nUChGR0v8AbIFceKDaUG6Fw/HLyZ0D8Q3Wrty0Byjgfubd4+R7Diu10=|636375286955229266|66|XError:Wrong Signature )
Please help.