Skip to content
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

trigger above parsing #1409

Merged
merged 3 commits into from
Jan 8, 2025
Merged

trigger above parsing #1409

merged 3 commits into from
Jan 8, 2025

Conversation

GuillaumeDSM
Copy link
Member

@GuillaumeDSM GuillaumeDSM requested a review from Herklos January 8, 2025 16:58
@GuillaumeDSM GuillaumeDSM self-assigned this Jan 8, 2025
Copy link
Member

@Herklos Herklos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

self.logger.error(f"Unknown order type, order: {fixed}")
# stop loss and take profits are not tagged as such by ccxt, force it
fixed[trading_enums.ExchangeConstantsOrderColumns.TYPE.value] = updated_type
fixed[trading_enums.ExchangeConstantsOrderColumns.TRIGGER_ABOVE.value] = trigger_above
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -151,8 +152,39 @@ async def test_handle_signal_orders(local_trader, mocked_bundle_stop_loss_in_sel
assert "1" in consumer.trading_mode.last_signal_description


async def test_handle_signal_orders_trigger_above_stop_loss(local_trader, mocked_bundle_trigger_above_stop_loss_in_sell_limit_in_market_signal):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@GuillaumeDSM GuillaumeDSM enabled auto-merge (rebase) January 8, 2025 22:20
@GuillaumeDSM GuillaumeDSM merged commit 8cabc9f into dev Jan 8, 2025
7 checks passed
@GuillaumeDSM GuillaumeDSM deleted the exc branch January 8, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants