alpaca/
: Contains a Go file (alpaca.go
) related to interacting with the Alpaca API.client/
: Contains a Go file (client.go
) related to the client functionality of the trading bot.enums/
: Contains a Go file (risk.go
) defining risk-related enums.handlers/
: Contains a Go file (news_socket.go
) related to handling news socket functionality.initialize/
: Contains Go files (alpaca.go
, openai.go
, redis_ops.go
) related to initializing various components of the trading bot.models/
: Contains Go files (message.go
, options.go
) defining various models used in the project.open_ai/
: Contains a Go file (open_ai.go
) related to interacting with the OpenAI API.server/
: Contains a Go file (news.go
) related to the server functionality of the trading bot.utils/
: Contains Go files (ptd-quantity.go
, quantity.go
) defining utility functions for quantity calculations.worker/
: Contains Go files (distributor.go
, processor.go
, task_process_order.go
) related to the worker functionality of the trading bot..env
file and inside that file you must replace the XXXXXX
for the correct values:OPEN_AI_KEY
Replace the XXXXXX
value for the open_ai.txt file given.APCA_API_KEY_ID
Replace the XXXXXX
value for the alpaca api KEY value file given.APCA_API_SECRET_KEY
Replace the XXXXXX
value for the alpaca api SECRET value file given.APCA_API_BASE_URL
Replace the https://paper-api.alpaca.markets
for the https://api.alpaca.markets
When you are ready to try with real money.make start
Safe, Low, Medium, High, Power
Safe
and Power
will only make trades above 95 and below 5 of sentiment analysis. Which will make for fewer trades, but with higher gain possibility. They differ in amount of money invested in each trade. I personally recomend this configuration if you have less than 25.000$ in your account, so you wont be affected by the PTD rule.Low
, Medium
, and High
make trades above 75 and below 25 of sentiment analysis. These configurations allow for more trades per day and differ in amount of money invested in each trade. I personaly recomend these configurations if you have more than 25.000$ in your account, because at that point you can safely day trade.