3 registered members (MadJack, AndrewAMD, Quad),
540
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
AlpacaZorroPlugin v1.0.6 Released
#484027
08/30/21 13:19
08/30/21 13:19
|
Joined: Sep 2019
Posts: 63 Naperville
kzhao
OP
Junior Member
|
OP
Junior Member
Joined: Sep 2019
Posts: 63
Naperville
|
|
|
|
Re: AlpacaZorroPlugin v1.0.6 Released
[Re: kzhao]
#484148
09/16/21 17:46
09/16/21 17:46
|
Joined: Jun 2013
Posts: 1,609
DdlV
Serious User
|
Serious User
Joined: Jun 2013
Posts: 1,609
|
Hi @kzhao, I've been trying to follow this part of your docs:
Generate AssetList file through custom borkerCommand
brokerCommand(2001, char *symbols);
symbols - One or more symbols separated by comma. If symbols = 0, all symbols will be included. An AssetAlpaca.csv file will be generated in the Log diredtory.
Exemple:
// GenerateAlpacaAssetList.c
function main() {
brokerCommand(2001, "SPY,AAPL,MSFT,TSLA"); // Generate AssetsAlpaca.csv contains SPY, AAPL, MSFT, TSLA symbols
}
The example works, but only when using Websocket. It doesn't work over REST - is it supposed to work over REST too? Also, I can't get "symbols = 0" to return anything. "brokerCommand(2001, 0);" just returns the header. And, what exactly will "all symbols" be? What's in AssetsFix.csv? Everything known to Alpaca?! Thanks!
|
|
|
Re: AlpacaZorroPlugin v1.0.6 Released
[Re: kzhao]
#484149
09/16/21 18:56
09/16/21 18:56
|
Joined: Aug 2021
Posts: 237
Lapsa
Member
|
Member
Joined: Aug 2021
Posts: 237
|
I can't read that README.md. Triggering typos. gj anyhow Not to make fun in case you dyslexic. I just find it extremely distracting.
Last edited by Lapsa; 09/16/21 18:57.
|
|
|
Re: AlpacaZorroPlugin v1.0.6 Released
[Re: kzhao]
#484154
09/17/21 02:01
09/17/21 02:01
|
Joined: Sep 2019
Posts: 63 Naperville
kzhao
OP
Junior Member
|
OP
Junior Member
Joined: Sep 2019
Posts: 63
Naperville
|
@DdiV I verified that the generate asset list brokerCommand works over both REST and WebSocket. The command is not using WebSocket. Do you see Zorro prints the Asset in the log window like the following?
GenAssetList compiling..........
Login 0 Alpaca..
!Use Alpaca market data
!Account ********** at UTC 09-17 01:45 ok
!Generating Asset List...
!Asset PH.
!Asset SO
!Asset SUI
!Asset WEC
Logout.. ok
If you add in Zorro.ini then run the script, do you see any error in the Alpaca log file? To get all symbols, use All symbols mean all tradeable symbols returned from https://api.alpaca.markets/v2/asssets endpoint.
Last edited by kzhao; 09/17/21 02:54.
|
|
|
|