AlpacaPlugin 1.0.1 released

Posted By: kzhao

AlpacaPlugin 1.0.1 released - 03/19/21 15:36

https://github.com/kzhdev/alpaca_zorro_plugin/releases

- Fix sometimes server heartbeat timeout after the first strategy launching proxy server.
- Shutdown proxy server 10 seconds after last strategy logout.
- Start client worker thread on strategy login. Stop client worker thread on strategy logout.
- GET_LOCK broker command returns 1 now.
- Default websocket url to Pro plan url.
Posted By: DdlV

Re: AlpacaPlugin 1.0.1 released - 03/19/21 20:39

@kzhao: Thank you for the quick update! I tried it just after market close with these results:

- "latest release" still points to 1.0.0 laugh

- Had to Trade many times before connecting - messages received on 1st try:
-- "!insufficient subscription (409)"
-- "!auth timeout (404)"
-- "!Websocket disconnected"
-- "!Unable to open Alpaca websocket. Prices will be pulled..."
-- "!Login failed."
-- "!access key verification faild : access key not found"

- Message received on subsequent tries:
-- "BrokerLogin: No Data!", or no message at all

- Messages received on last try that sorta worked:
-- "!insufficient subscription (409)"
-- "!auth timeout (404)"
-- "!Unable to open Alpaca websocket. Prices will be pulled..."
-- "!Account <account> at UTC <time>"
-- "!Websocket disconnected"
-- Normal strategy startup messages, prices downloads, & Lookback period
-- Connection box goes red, Server Offline
-- "BrokerLogin: No Data!" (twice)
-- Connection box goes grey, Server still Offline
-- CPU usage continues
-- Clicked Stop & waited many minutes
-- CPU usage continues
-- Exit Zorro
-- CPU usage stops

No changes were made in between tries - just clicked Trade again.

Hope that helps!
Posted By: kzhao

Re: AlpacaPlugin 1.0.1 released - 03/19/21 22:38

@DdIV Looks like you have the Basic market data plan. Please add following in Zorro.ini or ZorroFix.ini. It default to use SIP websocket url.

AlpacaPaidDataPlan = 0 // 0 = False, 1 = True. Default to 1
© 2024 lite-C Forums