feat: Add 'Send RFQ' button to ladder
This commit is contained in:
1 parent
32a38b3b5a
commit
b2a7e1d2ed
2 files changed
+12
No files matched your search
@@ -233,6 +233,7 @@ namespace mbts.spark {
|
||||
size_calculator.value = pos.abs();
|
||||
});
|
||||
send_order_cmd = new AsyncCommand<(double price, Side? side, MouseButton button)>(send_order_async);
|
||||
send_rfq_cmd = new Command(_send_rfq);
|
||||
cancel_cmd = new AsyncCommand<LadderModel.CancelType>(_model.cancel_orders, true);
|
||||
show_book_cmd = new Command(_show_book);
|
||||
show_ticket_cmd = new Command(_show_ticket);
|
||||
@@ -568,6 +569,7 @@ namespace mbts.spark {
|
||||
|
||||
public IAsyncCommand cancel_cmd { get; }
|
||||
public ICommand send_order_cmd { get; }
|
||||
public ICommand send_rfq_cmd { get; }
|
||||
public ICommand show_book_cmd { get; }
|
||||
public ICommand show_ticket_cmd { get; }
|
||||
public ICommand settings_cmd { get; }
|
||||
@@ -860,6 +862,13 @@ namespace mbts.spark {
|
||||
_misc_time = _model.md.misc_timestamp;
|
||||
}
|
||||
|
||||
void _send_rfq() =>
|
||||
_bus.post(SparkTags.RFQSend, new(new() {
|
||||
Security = new() {
|
||||
SecurityId = security.Id
|
||||
}
|
||||
}));
|
||||
|
||||
void _show_book() {
|
||||
var ob_settings = bts.shell.orderbook.OrderBookStartupData.Default;
|
||||
ob_settings.filters = new bts.shell.orderbook.FilterStates {
|
||||
|
||||
@@ -946,6 +946,9 @@
|
||||
</uag:AlgoTemplateFavoriteButtonsView.ItemsPanel>
|
||||
</uag:AlgoTemplateFavoriteButtonsView>
|
||||
|
||||
<!-- Send RFQ Button -->
|
||||
<Button Margin="2" Command="{Binding send_rfq_cmd}" Content="Send RFQ" />
|
||||
|
||||
<!-- Cancel Buttons -->
|
||||
<Grid Margin="0,17,0,0" VerticalAlignment="Top">
|
||||
<Grid.RowDefinitions>
|
||||
|
||||
Reference in new issue
Block a user