-
Notifications
You must be signed in to change notification settings - Fork 29
README formatting, add asset.chain, TPSL checks #78
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
base: starknet
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -145,14 +145,6 @@ def __create_order_object( | |||||||||||||||||||||
| if exact_only: | ||||||||||||||||||||||
| raise NotImplementedError("`exact_only` option is not supported yet") | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
||||||||||||||||||||||
| # Guard against unsupported TP/SL POSITION type until backend support is confirmed. | |
| if tp_sl_type == OrderTpslType.POSITION: | |
| raise NotImplementedError("`OrderTpslType.POSITION` is not supported yet") | |
| # Guard against unsupported MARKET price type for TP/SL triggers until backend support is confirmed. | |
| for tpsl_param in (take_profit, stop_loss): | |
| if tpsl_param is not None and tpsl_param.price_type == OrderPriceType.MARKET: | |
| raise NotImplementedError("`OrderPriceType.MARKET` for TP/SL is not supported yet") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
chainfield is defined as required (not Optional), but the test fixtures intests/fixtures/assets.pydon't provide this field when instantiating AssetOperationModel. This will cause test failures. Either make the field optional withOptional[str] = None, or update all test fixtures and test expectations to include the chain field.