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.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8795430e84063f6be024cad09403d9c9b2577fc5674a313bacf5523aa601c800 |
|
MD5 | e8d93895ec45d89e4812275d46b431aa |
|
BLAKE2b-256 | bcd1b942958d5f97d98bede49f057df593be07354a0ce4efb58b924da042c380 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d35fc7c6c93c011661ce9705f66afc0a31b7c281d7ec32aaae96450c2a26848 |
|
MD5 | 30ca6c4e938c680470253d22d45c7e34 |
|
BLAKE2b-256 | a45abc06ad7a2cc8f4246cde224b9f2f9eadde5867805fed4ce9b7919a7c8e4d |