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.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ded3779c59e9a8a08c813bdf7213aba059aa5f3121ee561e8f09895a674647c |
|
MD5 | fa43f3e7a216d8a0fd992fa00114e93d |
|
BLAKE2b-256 | 060c19b6d6d41533462b8a7bc0f57f0d4d0b513cdb0f07ed28fbfeb99f5be0ef |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a7ff1f3fd9a091995e1f2b38415df26fd5eb67802f7adfe39dc35994f0ca6b |
|
MD5 | 1f44f906823ff2d8d84b3ebcf004a2c0 |
|
BLAKE2b-256 | f56a7e2ec871fb3941aafd5d90d32412ff6dc5e36da99f0a21acfdcab079312f |