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.35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f5b04e204b3763b9518fc86c5713b595f0c9e04ac7fef4216dba5d0b819ccb |
|
MD5 | 17cde2bf9276cae99967c91eed2a56d2 |
|
BLAKE2b-256 | 946fc90a4f086510b4043ff4070c304fba1193b4a35756faf11de8c767dfea79 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333c30a55a3ad4204cc18a0baad32f77d9c2e4563d8613d4ece485c40eba057a |
|
MD5 | bceb930bfcee64ab5d0b9a0d0897dc44 |
|
BLAKE2b-256 | 0b0387f81f78a65ee57b199c683951f3083283fdc2fbe94e24e55bf27d383048 |