Skip to content

updated tabulate requirement #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ env-python2/
build/
*.sw*
*.egg-info


# PB

.idea/
cmake*/
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ bootstrap-python3:
bootstrap-python2:
virtualenv env-python2
env-python2/bin/pip install -r requirements/base.txt

2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pyyaml==5.3.1
tabulate==0.8.7
tabulate==0.8.10
requests==2.25.0
ujson==4.0.1
v20==3.0.25.0
3 changes: 2 additions & 1 deletion src/account/instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import argparse
import common.config
import common.view
import v20


def main():
Expand Down Expand Up @@ -35,7 +36,7 @@ def main():
#
# Fetch the tradeable instruments for the Account found in the config file
#
response = api.account.instruments(account_id)
response: v20.response.Response = api.account.instruments(account_id)

#
# Extract the list of Instruments from the response.
Expand Down
2 changes: 1 addition & 1 deletion src/account/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import argparse
import common.config
from .account import Account
from account import Account


def main():
Expand Down
6 changes: 4 additions & 2 deletions src/pricing/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ def main():
# Print out each price as it is received
#
for msg_type, msg in response.parts():
if msg_type == "pricing.Heartbeat" and args.show_heartbeats:
if msg_type == "pricing.PricingHeartbeat" and args.show_heartbeats:
print(heartbeat_to_string(msg))
elif msg_type == "pricing.Price":
elif msg_type == "pricing.ClientPrice":
print(price_to_string(msg))
else:
print(f'type {msg_type}, msg {msg}')


if __name__ == "__main__":
Expand Down