Skip to content

Commit e4a343d

Browse files
committed
docs refresh, pypi rst fix
1 parent 53c9664 commit e4a343d

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@
4848
autodoc_pydantic_settings_show_json = False
4949
autodoc_pydantic_show_field_summary = True
5050
autodoc_pydantic_model_undoc_members = False
51+
autodoc_pydantic_model_hide_paramlist = False
52+

docs/dxfeed.rst

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,65 +10,54 @@ If you want to double-check you typed the symbol right, or want to troubleshoot
1010
Event
1111
-----
1212

13-
.. module:: tastytrade.dxfeed.event
14-
15-
.. autoenum:: EventType
16-
17-
.. autoclass:: Event
13+
.. automodule:: tastytrade.dxfeed.event
1814
:members:
1915

2016
Candle
2117
------
2218

23-
.. module:: tastytrade.dxfeed.candle
24-
25-
.. autoclass:: Candle
19+
.. automodule:: tastytrade.dxfeed.candle
2620
:members:
21+
:show-inheritance:
2722

2823
Greeks
2924
------
3025

31-
.. module:: tastytrade.dxfeed.greeks
32-
33-
.. autoclass:: Greeks
26+
.. automodule:: tastytrade.dxfeed.greeks
3427
:members:
28+
:show-inheritance:
3529

3630
Profile
3731
-------
3832

39-
.. module:: tastytrade.dxfeed.profile
40-
41-
.. autoclass:: Profile
33+
.. automodule:: tastytrade.dxfeed.profile
4234
:members:
35+
:show-inheritance:
4336

4437
Quote
4538
-----
4639

47-
.. module:: tastytrade.dxfeed.quote
48-
49-
.. autoclass:: Quote
40+
.. automodule:: tastytrade.dxfeed.quote
5041
:members:
42+
:show-inheritance:
5143

5244
Summary
5345
-------
5446

55-
.. module:: tastytrade.dxfeed.summary
56-
57-
.. autoclass:: Summary
47+
.. automodule:: tastytrade.dxfeed.summary
5848
:members:
49+
:show-inheritance:
5950

6051
TheoPrice
6152
---------
6253

63-
.. module:: tastytrade.dxfeed.theoprice
64-
65-
.. autoclass:: TheoPrice
54+
.. automodule:: tastytrade.dxfeed.theoprice
6655
:members:
56+
:show-inheritance:
6757

6858
Trade
6959
-----
7060

71-
.. module:: tastytrade.dxfeed.trade
72-
73-
.. autoclass:: Trade
61+
.. automodule:: tastytrade.dxfeed.trade
7462
:members:
63+
:show-inheritance:

docs/tastytrade.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,52 @@ Account
55
-------
66
.. automodule:: tastytrade.account
77
:members:
8+
:show-inheritance:
89

910
Instruments
1011
-----------
1112
.. automodule:: tastytrade.instruments
1213
:members:
14+
:show-inheritance:
1315

1416
Metrics
1517
-------
1618
.. automodule:: tastytrade.metrics
1719
:members:
20+
:show-inheritance:
1821

1922
Order
2023
-----
2124
.. automodule:: tastytrade.order
2225
:members:
26+
:show-inheritance:
2327

2428
Search
2529
------
2630
.. automodule:: tastytrade.search
2731
:members:
32+
:show-inheritance:
2833

2934
Session
3035
-------
3136
.. automodule:: tastytrade.session
3237
:members:
38+
:show-inheritance:
3339

3440
Streamer
3541
--------
3642
.. automodule:: tastytrade.streamer
3743
:members:
44+
:show-inheritance:
3845

3946
Utils
4047
-----
4148
.. automodule:: tastytrade.utils
4249
:members:
50+
:inherited-members:
4351

4452
Watchlists
4553
----------
4654
.. automodule:: tastytrade.watchlists
4755
:members:
56+
:show-inheritance:

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
version=VERSION,
1313
description='An unofficial SDK for Tastytrade!',
1414
long_description=LONG_DESCRIPTION,
15-
long_description_content_type='text/markdown',
15+
long_description_content_type='text/x-rst',
1616
author='Graeme Holliday',
1717
author_email='graeme.holliday@pm.me',
1818
url='https://github.com/tastyware/tastytrade',
19-
license='Apache',
19+
license='MIT',
2020
install_requires=[
2121
'requests<3',
2222
'dataclasses',
2323
'websockets>=11.0.3',
2424
'pydantic>=1.10.7'
2525
],
2626
packages=find_packages(exclude=['ez_setup', 'tests*']),
27-
include_package_data=True,
27+
include_package_data=True
2828
)

tastytrade/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
API_URL = 'https://api.tastyworks.com'
44
CERT_URL = 'https://api.cert.tastyworks.com'
5-
VERSION = '5.0'
5+
VERSION = '5.1'
66

77

88
logger = logging.getLogger(__name__)

tastytrade/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def validate_response(response: Response) -> None:
3434
"""
3535
Checks if the given code is an error; if so, raises an exception.
3636
37-
:param json: response to check for errors
37+
:param response: response to check for errors
3838
"""
3939
if response.status_code // 100 != 2:
4040
content = response.json()['error']

0 commit comments

Comments
 (0)