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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc48db6fa97ed1823113e40855d8cbc38492a80d0aceff985f587c6d157ed1c6 |
|
MD5 | f6327786f052965901d69bbd57eff448 |
|
BLAKE2b-256 | 2436d6a29ca7e76a05862f9654e66dba73dd044bf2d288d758697d5ce10335b6 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6cac27188a093cce80a182c0d900e1b998bc0b51a496959dc722f364217cfc6 |
|
MD5 | 2f1c29bfadca8370f6f01b4ef007de60 |
|
BLAKE2b-256 | dbe6877262fdd1dcc6e74770d2290355ae3df50792c492699f30197e0e01d4d6 |