-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* uv formatting * add backtesting
- Loading branch information
Showing
38 changed files
with
2,586 additions
and
942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.10" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt | ||
- method: pip | ||
path: . | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.10" | ||
commands: | ||
- asdf plugin add uv | ||
- asdf install uv latest | ||
- asdf global uv latest | ||
- uv sync | ||
- uv pip install . | ||
- .venv/bin/python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/htmlo | ||
|
||
formats: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,107 @@ | ||
import logging | ||
|
||
API_URL = 'https://api.tastyworks.com' | ||
CERT_URL = 'https://api.cert.tastyworks.com' | ||
VERSION = '8.3' | ||
API_URL = "https://api.tastyworks.com" | ||
BACKTEST_URL = "https://backtester.vast.tastyworks.com" | ||
CERT_URL = "https://api.cert.tastyworks.com" | ||
VERSION = "8.4" | ||
|
||
logger = logging.getLogger(__name__) | ||
logger.setLevel(logging.DEBUG) | ||
|
||
# flake8: noqa | ||
# ruff: noqa: E402 | ||
|
||
from .account import Account | ||
from .dxfeed import EventType | ||
from .instruments import (Cryptocurrency, Equity, Future, FutureOption, | ||
FutureOptionProduct, FutureProduct, | ||
NestedFutureOptionChain, NestedOptionChain, Option, | ||
OptionType, Warrant, get_future_option_chain, | ||
get_option_chain, get_quantity_decimal_precisions) | ||
from .metrics import (get_dividends, get_earnings, get_market_metrics, | ||
get_risk_free_rate) | ||
from .order import (ComplexOrderType, InstrumentType, NewComplexOrder, | ||
NewOrder, OrderAction, OrderStatus, OrderTimeInForce, | ||
OrderType, PriceEffect) | ||
from .instruments import ( | ||
Cryptocurrency, | ||
Equity, | ||
Future, | ||
FutureOption, | ||
FutureOptionProduct, | ||
FutureProduct, | ||
NestedFutureOptionChain, | ||
NestedOptionChain, | ||
Option, | ||
OptionType, | ||
Warrant, | ||
get_future_option_chain, | ||
get_option_chain, | ||
get_quantity_decimal_precisions, | ||
) | ||
from .metrics import get_dividends, get_earnings, get_market_metrics, get_risk_free_rate | ||
from .order import ( | ||
ComplexOrderType, | ||
InstrumentType, | ||
NewComplexOrder, | ||
NewOrder, | ||
OrderAction, | ||
OrderStatus, | ||
OrderTimeInForce, | ||
OrderType, | ||
PriceEffect, | ||
) | ||
from .search import symbol_search | ||
from .session import Session | ||
from .streamer import AlertStreamer, AlertType, DXLinkStreamer | ||
from .utils import (get_future_fx_monthly, get_future_grain_monthly, | ||
get_future_index_monthly, get_future_metal_monthly, | ||
get_future_oil_monthly, get_future_treasury_monthly, | ||
get_tasty_monthly, get_third_friday, now_in_new_york, | ||
today_in_new_york) | ||
from .utils import ( | ||
get_future_fx_monthly, | ||
get_future_grain_monthly, | ||
get_future_index_monthly, | ||
get_future_metal_monthly, | ||
get_future_oil_monthly, | ||
get_future_treasury_monthly, | ||
get_tasty_monthly, | ||
get_third_friday, | ||
now_in_new_york, | ||
today_in_new_york, | ||
) | ||
from .watchlists import PairsWatchlist, Watchlist | ||
|
||
__all__ = [ | ||
'Account', | ||
'AlertStreamer', | ||
'AlertType', | ||
'ComplexOrderType', | ||
'Cryptocurrency', | ||
'DXLinkStreamer', | ||
'Equity', | ||
'EventType', | ||
'Future', | ||
'FutureOption', | ||
'FutureOptionProduct', | ||
'FutureProduct', | ||
'InstrumentType', | ||
'NestedFutureOptionChain', | ||
'NestedOptionChain', | ||
'NewComplexOrder', | ||
'NewOrder', | ||
'Option', | ||
'OptionType', | ||
'OrderAction', | ||
'OrderStatus', | ||
'OrderTimeInForce', | ||
'OrderType', | ||
'PairsWatchlist', | ||
'PriceEffect', | ||
'Session', | ||
'Warrant', | ||
'Watchlist', | ||
'get_dividends', | ||
'get_earnings', | ||
'get_future_fx_monthly', | ||
'get_future_grain_monthly', | ||
'get_future_index_monthly', | ||
'get_future_metal_monthly', | ||
'get_future_oil_monthly', | ||
'get_future_option_chain', | ||
'get_future_treasury_monthly', | ||
'get_market_metrics', | ||
'get_option_chain', | ||
'get_quantity_decimal_precisions', | ||
'get_risk_free_rate', | ||
'get_tasty_monthly', | ||
'get_third_friday', | ||
'now_in_new_york', | ||
'symbol_search', | ||
'today_in_new_york' | ||
"Account", | ||
"AlertStreamer", | ||
"AlertType", | ||
"ComplexOrderType", | ||
"Cryptocurrency", | ||
"DXLinkStreamer", | ||
"Equity", | ||
"EventType", | ||
"Future", | ||
"FutureOption", | ||
"FutureOptionProduct", | ||
"FutureProduct", | ||
"InstrumentType", | ||
"NestedFutureOptionChain", | ||
"NestedOptionChain", | ||
"NewComplexOrder", | ||
"NewOrder", | ||
"Option", | ||
"OptionType", | ||
"OrderAction", | ||
"OrderStatus", | ||
"OrderTimeInForce", | ||
"OrderType", | ||
"PairsWatchlist", | ||
"PriceEffect", | ||
"Session", | ||
"Warrant", | ||
"Watchlist", | ||
"get_dividends", | ||
"get_earnings", | ||
"get_future_fx_monthly", | ||
"get_future_grain_monthly", | ||
"get_future_index_monthly", | ||
"get_future_metal_monthly", | ||
"get_future_oil_monthly", | ||
"get_future_option_chain", | ||
"get_future_treasury_monthly", | ||
"get_market_metrics", | ||
"get_option_chain", | ||
"get_quantity_decimal_precisions", | ||
"get_risk_free_rate", | ||
"get_tasty_monthly", | ||
"get_third_friday", | ||
"now_in_new_york", | ||
"symbol_search", | ||
"today_in_new_york", | ||
] |
Oops, something went wrong.