Skip to content

Ever wanted to trade stocks programmatically? Here at MarketBot, we have created a tool to analyze the equities market and execute orders via code. Our vision is to learn about technical indicators and attempt to employ them in the creation of a profitable, automated trader.

License

Notifications You must be signed in to change notification settings

kevinhead/MarketBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarketBot

Ever wanted to trade stocks programmatically? Here at MarketBot, we plan on creating a tool to analyze the equities market and execute orders via code. Our vision is to learn about technical indicators and attempt to employ them in the creation of a profitable, automated trader.

Initialize your configuration with the following in MarketBot/settings.json

{
    "config": {
        "alpaca_key_id": "",
        "alpaca_private_key": "",
        "alphavantage_key": "",
        "discord_token": ""
        "discord_user_id": ""
    }
}

Current usage requires Python 3.7. This bot is remote controlled via Discord, allowing for commands such as:

longshort [add/remove] TICKER
    Adds / removes a ticker from the universe of stocks within your longshort strategy.

longshort run
    Begins running longshort strategy.

longshort kill
    Terminates longshort.
    
longshort view 
    View current universe of stocks.

positions 
    Shows current portfolio positions and profits/loss from each position
    
show positions
    Shows the distribution of the current positions in a pie chart
    
show portfolio [day/week/month/year] 
    Shows the graph for the equity portfolio of the account for the specified time period (ending on the current day)
    If not specified, it will default to week

Here is an example of the bot in action:

Example MarketBot Image

About

Ever wanted to trade stocks programmatically? Here at MarketBot, we have created a tool to analyze the equities market and execute orders via code. Our vision is to learn about technical indicators and attempt to employ them in the creation of a profitable, automated trader.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%