Gamestudio Links
Zorro Links
Newest Posts
Miliseconds capturing
by Dion. 02/06/23 13:27
Weekly Pivots
by paulk. 02/03/23 18:02
Corvitextu texture browser released...
by NeoDumont. 02/02/23 22:35
How many markets with Zorro free?
by XRaf. 02/02/23 15:33
Experiencing Issues with 2.53.6
by vinitrinh. 02/02/23 10:07
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (Michael_Schwarz, qin, AndrewAMD), 559 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Puezzin, Quant2, qin, ktroch, dagliottone
18890 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
BrokerLogin - char* Accounts as input or output? #486828
10/18/22 16:46
10/18/22 16:46
Joined: Feb 2017
Posts: 1,602
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,602
Chicago
I took a peek at the Bittrex plugin code, and I saw this:
Code
DLLFUNC int BrokerLogin(char* User,char* Pwd,char* Type,char* Account)
{
	if(User) { // login
		memset(&G,0,sizeof(G));
		G.Amount = 0.00001;
		strcpy_s(G.Key,User);
		strcpy_s(G.Secret,Pwd);
		if(!*User || !*Pwd)
			showMsg("Prices only","");
		else if(!BrokerAccount(Account,NULL,NULL,NULL))
			return 0; // invalid credentials
		else 
			showMsg("Bittrex plugin",PLUGIN_VERSION); // all ok
		return 1;
	} else { // logout
		if(G.HttpId) 
			http_free(G.HttpId);
	}
	return 0;
}
As you can see, it is calling BrokerAccount, using Account as an input.

The documentation says that char* Account is an optional output of char[1024]. Is it also an input now? Does it pull from the Accounts.csv file then?

Re: BrokerLogin - char* Accounts as input or output? [Re: AndrewAMD] #486829
10/18/22 17:40
10/18/22 17:40
Joined: Jul 2000
Posts: 27,933
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,933
Frankfurt
Yes, it's the account Id from the list. The login function can optionally overwrite it, but if there is only one account for that login, nothing needs be filled.

Updated doc: https://zorro-project.com/manual/en/brokerplugin.htm

Re: BrokerLogin - char* Accounts as input or output? [Re: AndrewAMD] #486830
10/18/22 18:38
10/18/22 18:38
Joined: Feb 2017
Posts: 1,602
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,602
Chicago
That was fast, thanks!


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1