Skip to content

Commit

Permalink
prepare v7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Graeme22 committed Jul 2, 2024
1 parent eaa3180 commit f497dc8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = 'tastytrade'
copyright = '2024, Graeme Holliday'
author = 'Graeme Holliday'
release = '7.7'
release = '7.8'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from setuptools import find_packages, setup


f = open('README.rst', 'r')
f = open('README.md', 'r')
LONG_DESCRIPTION = f.read()
f.close()

setup(
name='tastytrade',
version='7.7',
version='7.8',
description='An unofficial SDK for Tastytrade!',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/x-rst',
long_description_content_type='text/markdown',
author='Graeme Holliday',
author_email='[email protected]',
url='https://github.com/tastyware/tastytrade',
Expand Down
2 changes: 1 addition & 1 deletion tastytrade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

API_URL = 'https://api.tastyworks.com'
CERT_URL = 'https://api.cert.tastyworks.com'
VERSION = '7.7'
VERSION = '7.8'

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
Expand Down
10 changes: 8 additions & 2 deletions tastytrade/streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from tastytrade.dxfeed import (Candle, Event, EventType, Greeks, Profile,
Quote, Summary, TheoPrice, TimeAndSale, Trade,
Underlying)
from tastytrade.order import (InstrumentType, OrderChain, PlacedOrder,
PriceEffect)
from tastytrade.order import (InstrumentType, OrderChain, PlacedComplexOrder,
PlacedOrder, PriceEffect)
from tastytrade.session import CertificationSession, ProductionSession, Session
from tastytrade.utils import TastytradeError, TastytradeJsonDataclass
from tastytrade.watchlists import Watchlist
Expand Down Expand Up @@ -84,6 +84,7 @@ class AlertType(str, Enum):
for the account streamer.
"""
ACCOUNT_BALANCE = 'AccountBalance'
COMPLEX_ORDER = 'ComplexOrder'
ORDER = 'Order'
ORDER_CHAIN = 'OrderChain'
POSITION = 'CurrentPosition'
Expand Down Expand Up @@ -183,6 +184,7 @@ async def listen(
Union[
AccountBalance,
CurrentPosition,
PlacedComplexOrder,
PlacedOrder,
OrderChain,
QuoteAlert,
Expand Down Expand Up @@ -211,6 +213,10 @@ async def _map_message(self, type_str: str, data: dict):
await self._queues[AlertType.POSITION].put(
CurrentPosition(**data)
)
elif type_str == AlertType.COMPLEX_ORDER:
await self._queues[AlertType.COMPLEX_ORDER].put(
PlacedComplexOrder(**data)
)
elif type_str == AlertType.ORDER:
await self._queues[AlertType.ORDER].put(
PlacedOrder(**data)
Expand Down

0 comments on commit f497dc8

Please sign in to comment.