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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6379e56a2318a6f11a0f39d29113ed68762c509a9a19cc2fa20b4c7da7a8fbf0 |
|
MD5 | f8577e79f74e3f7e41caae6efd0f0b57 |
|
BLAKE2b-256 | 58f16e65ed814a44fbb8ede7d60433d3bdb3e76365091551b84a98c621e57e36 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c367c56ca8263fc98004dd200f0db863932e19c18f3ebd3865c15d78d87c67 |
|
MD5 | 0801feab422da6b697b91d738a707cb7 |
|
BLAKE2b-256 | 98253199d6289f64e2c4f388525fc56607c1214055a2e1734f5249badeb1107d |