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.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841fa58a96f4ba826a170566ccfd6d02caa7e3a82b1d665a530eb8de32c15a89 |
|
MD5 | 7828226618865fcd8a1bda38bd280acc |
|
BLAKE2b-256 | 0d2791b5da8257c034859ae5a6021e536ac00a533603d1c274aee9e5c03cd69d |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a866673c204242c1a47bf0964719f3839906b48c92c51843b39d18d1c065a21b |
|
MD5 | 7b92e38013496134c154d9e9e6baae44 |
|
BLAKE2b-256 | 130d164814157bb9b4ead30e196cfd6ca15aec80e021dcd3c91cb50ad81d9080 |