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.38.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 000ae67e1d5fcdcb76070e7a3c5f42a87da929fc746ede45dbaa9665490b303f |
|
MD5 | 09ca381bad62ab49b40e3106b4ecbef9 |
|
BLAKE2b-256 | 90998f010661583b6828048a380475f00b5f3e231f9888a668458e9519ef3beb |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.38-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cfe0d304786814c41181541b83f3cb95f0c42bf2c00ab9f8add6f944de1b730 |
|
MD5 | b204521929674242ee3510af0c572822 |
|
BLAKE2b-256 | b92947f3b25f2bcec43cace6da9e8dafab99f91fc7fc07773623286a694c1ab5 |