Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 945 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,718
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,718
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