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.36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa33e9847bf3e1f42d490cc04f359610afe84c811b3be8bfc2ba1765c20d8b5 |
|
MD5 | 57625834582b4a63e4ee43e1018cdacc |
|
BLAKE2b-256 | 065632955df655c7cba01e23df8c865adf0161775ab0a46e433f35406c8d3615 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd05e678b43ab51fd0c21fda7a1eb8dfef99052f93fdef01b2f4266d8ad27dcc |
|
MD5 | 9226a4ff207a718d02d76c012e584f30 |
|
BLAKE2b-256 | 577d41fcb98f256554c90271bdbac90a9dfcd4cb58353cb6b7478330a5978b38 |