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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7747d5cc836d4519919b7e721ba18c9c48a2f85d7c4bfcdb918fb94e69c9a33 |
|
MD5 | 7d5d401d3804bfad13b5264b884dcc69 |
|
BLAKE2b-256 | f28009095fe2859943458bcc16f231ee0fa5db28c94872c876609433d19a33fe |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e67eb4eec40221742bbddc65178b27f2f1b358a034faf828bac770841b7f06a |
|
MD5 | 44460a8f6c5aea350bc7551055efcf0d |
|
BLAKE2b-256 | 6a9c7044c99a4695946acc92c4e24cdb9f1ecf5589315ca1efae4361002210a0 |