Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 429 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 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,725
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

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

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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,725
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

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