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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58e98410a38e27f568dee5c9a46afb95736be987c4768b9e6e56e7a9abfac8a |
|
MD5 | 8f858aff8bdc7d68911a6bd0d044475c |
|
BLAKE2b-256 | 99d241707b860da2a09112006779b222eb73a15b502ccaf2e1181ab3f8c707d6 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12d9c05c179f6479e1a92ebea54741c3c6d84893328f9fcb4e6bd9c7a86a7199 |
|
MD5 | 0244ed99410064055aa900073d6e5109 |
|
BLAKE2b-256 | a7fe9412dd16a02d59ff82710b750ec42eea4c68a8e12d46d821b50e4c8fd359 |