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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac69a831742f6b2d17b0009ecf544bd3ebaf60334bf758a2a74af47a73691024 |
|
MD5 | e4776fa95fdf6bdac21c5a22cd1c1bff |
|
BLAKE2b-256 | 08b6c72193ab05821a93d942dc53a3f77cd66efdd7952e436d083238a6a81457 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86deb61dba5ac82e43f48dd7eb5959b47d49ff7d6ef8f1c77c8b5cae94465089 |
|
MD5 | 22d396bcf1fee0f5be6770e199d1aece |
|
BLAKE2b-256 | 219ff06d3b533815f69c4047d8781092bfec6cf38f6abe9ca1e3929c79640b05 |