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.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0798f97a4f475af9911a921cf39c3dfad6b84966f021b4a4111f6a9ead5268ae |
|
MD5 | ec626da5aa0a287771b1b031466522c0 |
|
BLAKE2b-256 | 4874ea377e67c4ca189723d74714dcc2118bd4fc5f5f3fd6a68e2dbc0c350a52 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aed4060d50bc52482d255af635856c11f6d9bcede6c83675de4727cf805ac68 |
|
MD5 | 2ac6bb5c14a6dde98c0bc8e5fe3e3129 |
|
BLAKE2b-256 | d1d8188314af076eba868d3680ef14b88884c82e0b8eb3a333d34831bd1968cb |