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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2df35e6900ec16d673a1c43e4ffdcd4dd9d40abadd770a62d81b0e894e2155c4 |
|
MD5 | ae4a0507fa1984240bf915a599517373 |
|
BLAKE2b-256 | 9ff8c27457ad192738d82998416de3c940fced7d43477221deb8741025a1fc9c |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2678e49c8094075a1beb82e23312c6cda0589df268d87fa6103a99327849bf5e |
|
MD5 | 27940f0e091a61217fa3680e76fe6e3f |
|
BLAKE2b-256 | 12e9617f959e579e555f23e66e574f640e451281349d360b18369cc35e941349 |