Skip to content

Commit 157ceee

Browse files
committed
tests; new naming
1 parent c59398c commit 157ceee

27 files changed

+320
-352
lines changed

.github/workflows/python-app.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
python -m pip install --upgrade pip
2323
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2424
- name: Sorting...
25-
run: isort --check --diff tastyworks/ tests/
25+
run: isort --check --diff tastytrade/
2626
- name: Linting...
27-
run: flake8 --count --show-source --statistics --ignore=E501 tastyworks/
27+
run: flake8 --count --show-source --statistics --ignore=E501 tastytrade/
2828
- name: Type checking...
29-
run: mypy -p tastyworks
29+
run: mypy -p tastytrade

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

99
project = 'tastytrade'
10-
copyright = '2022, Graeme Holliday'
10+
copyright = '2023, Graeme Holliday'
1111
author = 'Graeme Holliday'
1212
release = '1.0'
1313

docs/dxfeed.rst

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
tastytrade.dxfeed
2+
=================
3+
4+
For general dxfeed symbology, go to `Formats <https://kb.dxfeed.com/en/data-model/symbology-guide/general-provisions.html#formats-60641>`_, where you'll find information on various kinds of formatting.
5+
6+
For options on futures symbology, go to `CME Group <https://cmegroup.com/>`_ and look at the 'Specs' section for the given futures symbol.
7+
8+
If you want to double-check you typed the symbol right, or want to troubleshoot a hanging request, go to `dxfeed Symbol Lookup <https://symbol-lookup.dxfeed.com/>`_ and type in the same symbol.
9+
10+
Event
11+
-----
12+
13+
.. module:: tastytrade.dxfeed.event
14+
15+
.. autoclass:: Event
16+
:members:
17+
18+
Greeks
19+
------
20+
21+
.. module:: tastytrade.dxfeed.greeks
22+
23+
.. autoclass:: Greeks
24+
:members:
25+
26+
Profile
27+
-------
28+
29+
.. module:: tastytrade.dxfeed.profile
30+
31+
.. autoclass:: Profile
32+
:members:
33+
34+
Quote
35+
-----
36+
37+
.. module:: tastytrade.dxfeed.quote
38+
39+
.. autoclass:: Quote
40+
:members:
41+
42+
Summary
43+
-------
44+
45+
.. module:: tastytrade.dxfeed.summary
46+
47+
.. autoclass:: Summary
48+
:members:
49+
50+
TheoPrice
51+
---------
52+
53+
.. module:: tastytrade.dxfeed.theoprice
54+
55+
.. autoclass:: TheoPrice
56+
:members:
57+
58+
Trade
59+
-----
60+
61+
.. module:: tastytrade.dxfeed.trade
62+
63+
.. autoclass:: Trade
64+
:members:

docs/index.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
tastytrade: A reverse-engineered Python API for Tastytrade
22
==========================================================
33

4-
For general dxfeed symbology, go to `Formats <https://kb.dxfeed.com/en/data-model/symbology-guide/general-provisions.html#formats-60641>`_, where you'll find information on various kinds of formatting.
5-
6-
For options on futures symbology, go to `CME Group <https://cmegroup.com/>`_ and look at the 'Specs' section for the given futures symbol.
7-
8-
If you want to double-check you typed the symbol right, or want to troubleshoot a hanging request, go to `dxfeed Symbol Lookup <https://symbol-lookup.dxfeed.com/>`_ and type in the same symbol.
9-
104
.. toctree::
115
:maxdepth: 2
126
:caption: Documentation:
@@ -18,7 +12,7 @@ If you want to double-check you typed the symbol right, or want to troubleshoot
1812
:caption: API Reference:
1913

2014
tastytrade
21-
models
15+
dxfeed
2216

2317
Indices and tables
2418
==================

docs/models.rst

Lines changed: 0 additions & 89 deletions
This file was deleted.

docs/requirements.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/requirements.txt

Lines changed: 0 additions & 57 deletions
This file was deleted.

docs/tastytrade.rst

Lines changed: 70 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,86 @@
11
tastytrade
22
==========
33

4+
Account
5+
-------
6+
7+
.. module:: tastytrade.account
8+
9+
.. autoclass:: TradingAccount
10+
:members:
11+
12+
Option
13+
------
14+
15+
.. module:: tastytrade.option
16+
17+
.. autoclass:: OptionType
18+
:members:
19+
20+
.. autoclass:: Option
21+
:members:
22+
23+
.. autoclass:: OptionChain
24+
:members:
25+
26+
.. autofunction:: get_option_chain
27+
28+
Order
29+
-----
30+
31+
.. module:: tastytrade.order
32+
33+
.. autodata:: OrderType
34+
35+
.. autodata:: OrderPriceEffect
36+
37+
.. autodata:: OrderStatus
38+
39+
.. autodata:: TimeInForce
40+
41+
.. autoclass:: OrderDetails
42+
:members:
43+
44+
.. autoclass:: Order
45+
:members:
46+
47+
Search
48+
------
49+
.. module:: tastytrade.search
50+
51+
.. autofunction:: symbol_search
52+
53+
Session
54+
-------
55+
56+
.. module:: tastytrade.session
57+
58+
.. autoclass:: Session
59+
:members:
60+
461
Streamer
562
--------
663
.. module:: tastytrade.streamer
764

8-
.. autoclass:: SubscriptionType
65+
.. autoclass:: EventType
966
:members:
1067

1168
.. autoclass:: DataStreamer
1269
:members:
1370

14-
Utilities
15-
---------
16-
71+
Utils
72+
-----
1773
.. module:: tastytrade.utils
1874

1975
.. autofunction:: get_third_friday
2076

21-
.. autofunction:: symbol_search
77+
Watchlists
78+
----------
79+
80+
.. module:: tastytrade.watchlists
81+
82+
.. autoclass:: Watchlist
83+
:members:
84+
85+
.. autoclass:: WatchlistGroup
86+
:members:

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
aiohttp==3.7.4
1+
aiohttp==3.8.4
22
tastyworks-aiocometd==1.0
33
requests==2.26.0
44
mypy==0.931
55
flake8==3.9.2
66
isort==5.8.0
7-
sphinx==5.1.0
7+
sphinx==5.3.0
88
sphinx_rtd_theme==1.0.0
99
types-requests==2.28.10

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import find_packages, setup
22

3-
from tastytrade.utils import VERSION
3+
from tastytrade import VERSION
44

55

66
f = open('README.md', 'r')

0 commit comments

Comments
 (0)