Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, howardR, sleakz), 674 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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