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.41.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6956149828eea5c79419f727993553034897f6617647a3ed591ad59cbc5a1f |
|
MD5 | 5c0394c8baaeba01adedf94daf941245 |
|
BLAKE2b-256 | a58ba0a7dbfa961ac016acc2c746f2f981b0e41964c4ea3b46d0b75aa0ca42e5 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.41-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92269b3db7c6ca6af3e04309634b7141d0b02952150bb7741b2177360ee45ddb |
|
MD5 | 7daabd150bce7bd47ebf50d844c1b54e |
|
BLAKE2b-256 | b6a8b1b0ce239af6b05ec37eea47d22fcede8021dd0dd1ae4a743d034df99a9b |