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.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb53cd1f37d869949d257a4b050ece6db956e3b500e47aa38538d751c041db71 |
|
MD5 | 0ad32b26dcd5a5f44f29e3ee4374e471 |
|
BLAKE2b-256 | a903d980e449e3f52eb4f66566ce0ba856088d301ad3bae0d9d5ab988a45921a |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 598ec103b3900deaebcbe0578a663799db122280b08afe2111b2d8ac5a879380 |
|
MD5 | 855fc431fa1a997d12cf710839d6f6ab |
|
BLAKE2b-256 | 88eb15e8dcc4ef261216b34606e95094cf09b8be505e99e6676a13faec02257e |