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.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b40f0445a8eab03a0f67231ac6f4ea9fafe76953feb0807e077a446aa57fd3 |
|
MD5 | af0be030f310077e25360c5822f6958b |
|
BLAKE2b-256 | fc070c5fabb5acbf66ee3ac9f9884e5edecb04fe173c8b82c358bd521e3ad09b |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a9c0b8310be009fe037fe1766e82222593c055e0035e32d362e312213a434aa |
|
MD5 | 1858b72dfb06d28b09a832cd32d29d58 |
|
BLAKE2b-256 | 1d72d9c612e662d290ecd23be14589ef09ce260249930a274a355a515bf4d1e1 |