an image for this project: https://github.com/shlomikushchi/alpaca-proxy-agent
1.9K
_ _ ___ _ _
/_\ | |_ __ __ _ ___ __ _ / _ \_ __ _____ ___ _ /_\ __ _ ___ _ __ | |_
//_\\| | '_ \ / _` |/ __/ _` | / /_)/ '__/ _ \ \/ / | | | //_\\ / _` |/ _ \ '_ \| __|
/ _ \ | |_) | (_| | (_| (_| | / ___/| | | (_) > <| |_| | / _ \ (_| | __/ | | | |_
\_/ \_/_| .__/ \__,_|\___\__,_| \/ |_| \___/_/\_\\__, | \_/ \_/\__, |\___|_| |_|\__|
|_| |___/ |___/
This is a project to help users of Alpaca to execute more than one data websocket connections against their servers.
Right now you can only connect one websocket with your user credentials. if you want to run more than one algorithm, you can't.
This project will help you achieve that. look at this illustration to get the concept

It doesn't matter which sdk you are using (python, js, go, c#) you can use this to achieve that.
You have 2 options:
Using docker with image from docker hub (easiest)
Cloning the repo and using docker/docker-compose to build and run this project locally(a bit more powerful if you want to edit the proxy code)
Nothing easier than that.
docker pull shlomik/alpaca-proxy-agentdocker run -it -p 8765:8765 shlomik/alpaca-proxy-agent-p xxxx:8765git clone https://github.com/shlomikushchi/alpaca-proxy-agent.gitdocker-compose updocker-compose -f dev.yml up main.py and execute it locally.Alpaca supports 2 data streams:
If you are using this project I assume you know what these are and what are the differences.
The default data stream is Alpaca. To select the Polygon data stream you need to set an environment variable called USE_POLYGON like so:
docker run -p 8765:8765 -it -e USE_POLYGON=true shlomik/alpaca-proxy-agent
You are runngin a local websocket server. Make sure your IP is not accessible when you do (you probably shouldn't run this on public networks)
SSL between your algo and the proxy is not supported (it runs locally). between the proxy-agent and the Alpaca servers we use wss
Content type
Image
Digest
Size
103.9 MB
Last updated
over 5 years ago
docker pull shlomik/alpaca-proxy-agent