A python package to interact with the tradingbot22 backend. used in tradingbot22-tradingbots
Project description
Published on: https://pypi.org/project/basebot22-basebot-JustinGuese/
tradingbot22-basebot
python package to interact with the tradingbot22-backend, used in tradingbot22-tradingbots
pip install basebot22-basebot-JustinGuese
or
pip install -U git+https://github.com/JustinGuese/tradingbot22-basebot/
Import with
from basebot22.basebot import BaseBot
usage
bot = BaseBot("testbot")
print(bot.getPortfolio())
bot.buy("AAPL", 2000, amountInUSD=True)
print("portfolio after buy")
print(bot.getPortfolio())
print("portfolio after sell")
bot.sell("AAPL", 1500, amountInUSD=True)
print(bot.getPortfolio())
print("portfolio worth is: %.2f dollars" % bot.getPortfolioWorth())
print("next earnings calendar events:")
print(bot.getEarnings(only_now=True))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for basebot22-basebot_JustinGuese-0.3.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e7b509ca441fc81052c24466ed2f242997f5609ffcc9ad0618f55b6a122b27 |
|
MD5 | cfd03a359ed4a373110029d1bbdcb55f |
|
BLAKE2b-256 | b2708cb066ceea3d72900f4d13c5d133de49d0724d3513ef5276c6cf969d0978 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b027780f5abc7afdc95a7d8d8a5022f561e91edef46b4543ad30c225351818c |
|
MD5 | b6093163b5e6faa7e9165564ed6fa3b0 |
|
BLAKE2b-256 | 930e79a7876b50bc4b150d1dadb2d99d4c31f0d17e85c2cc8344c627f7432953 |