Hi, I am trying to use Alpaca as my broker for Live trading and after starting the whole process I have gotten this 2 error messages :
Blueshift Alert[2021-03-22 10:09:42.729952-04:00] ERROR in _init_streaming:cannot set up data streaming: api key and secret key missing. [This one occurred once and the console still continued on to other process]
Blueshift Alert[2021-03-22 10:13:11.142546-04:00] WARNING in algorithm:Error received from API: In module alpacadata, function current, error:illegal column price [Our console is stuck at this and this message is getting continuously printed out]
Could anyone explain why this is happening?
It seems we misesd your post earlier, apologies. If you skipped entering the API and secret key while setting up your Alpaca configuration, you will not be able to use their streaming services. The first message is an error that let's you know that. It is highly recommended that you supply these keys while setting up the broker config for better performance (some realtime features will not work without them, and updates may be slow otherwise). The second message pertains to your data.current method call. On the live version, the field (the second arguement) cannot be 'price'. If you use 'close' instead of 'price' it should work.