Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8553229119 | ||
|
|
4903c12533 | ||
|
|
88f23530c6 | ||
|
|
76ff36e514 | ||
|
|
740c14c261 | ||
|
|
dbdc915ff2 | ||
|
|
10476c6662 |
No files matched your search
@@ -4,6 +4,11 @@ weight = 3
|
||||
sort_by = "weight"
|
||||
insert_anchor_links = "right"
|
||||
+++
|
||||
|
||||
## 2.6.1
|
||||
### User Visible Changes
|
||||
- Fixed an issue in the ladder where an error could occur when trying to change ladder settings for the first time
|
||||
|
||||
## 2.6.0
|
||||
### User Visible Changes
|
||||
- In the ladder made last trade more distinctive when overlayed on the volumn column
|
||||
|
||||
@@ -339,6 +339,7 @@ namespace mbts.spark {
|
||||
zoom_slider_visible = false,
|
||||
zoom_factor = _default_zoom_factor,
|
||||
net_change = NetChangeTerms.None,
|
||||
mini_ob = new LadderMiniOrderBookSettings(bts.shell.orderbook.OrderBookStartupData.default_mini_grid.general),
|
||||
};
|
||||
rv.row_height = LadderRender.measure_row_height(rv);
|
||||
return rv;
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace bts.shell {
|
||||
});
|
||||
});
|
||||
// vm
|
||||
vm = LadderVM.create(_bus, model, last_value ?? _settings_hub.current.ladder, settings_source);
|
||||
vm = LadderVM.create(_bus, model, LadderSettings.sanitize(last_value ?? _settings_hub.current.ladder), settings_source);
|
||||
vm.settings_invalidated += on_settings_invalidated;
|
||||
vm.order_properties_vm.open_algo_popup_on_select = _ladder_conf.open_algo_popup_on_select;
|
||||
vm.order_properties_vm.use_algo_param_grid = _ladder_conf.use_algo_param_grid;
|
||||
|
||||
@@ -363,7 +363,9 @@ namespace mbts.spark {
|
||||
} else {
|
||||
clone = SparkUtils.clone_proto(_current);
|
||||
#pragma warning disable CS0612 // Type or member is obsolete
|
||||
clone.mini_ob = new LadderMiniOrderBookSettings(mini_ob.create().with(sorting_criterion: _current.mini_ob.value.sorting_criterion));
|
||||
clone.mini_ob = new LadderMiniOrderBookSettings(_current.mini_ob.value != null ?
|
||||
mini_ob.create().with(sorting_criterion: _current.mini_ob.value.sorting_criterion) :
|
||||
mini_ob.create());
|
||||
#pragma warning restore CS0612 // Type or member is obsolete
|
||||
}
|
||||
clone.badge_style = badge_style;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace mbts.spark {
|
||||
LadderVM.create_readonly(_bus,
|
||||
new LadderModel(security_md.Value, _model, _model.mbo_service,
|
||||
new Func<OrderSecurity, bool>(osec => _selected_order_tree.Contains(osec.order.Key))),
|
||||
Observable.Return(LadderSettings.Default)) : null);
|
||||
Observable.Return(LadderSettings.sanitize(LadderSettings.Default))) : null);
|
||||
RaisePropertyChanged(nameof(value));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,15 +83,8 @@ _end_state_worker (this, other._end_state_worker){
|
||||
/****************************External Calls**************************/
|
||||
/********************************************************************/
|
||||
void SingleFillHedger::init_hedger (Price price,
|
||||
Quantity quantity,
|
||||
ChildOrder* order){
|
||||
if(order!=nullptr && !_spreader.in_cache_warming_cycle()){
|
||||
_child_order_state.re_init(*order);
|
||||
_child_order_state.modify_order(price,quantity);
|
||||
_switch_state (&_working_state_worker);
|
||||
}
|
||||
else
|
||||
_worker->init(price,quantity);
|
||||
Quantity quantity){
|
||||
_worker->init(price,quantity);
|
||||
}
|
||||
void SingleFillHedger::on_order_update(const SpreaderChildOrderState& u){
|
||||
//bts_assert (u.order_key() == _order.order_key());
|
||||
|
||||
@@ -93,8 +93,7 @@ public:
|
||||
//that live in the START state until...
|
||||
//iii.until init_hedger is called which sets the price
|
||||
//qty and causes the order to be submitted
|
||||
void init_hedger (Price price, Quantity quantity,
|
||||
ChildOrder* order = nullptr);
|
||||
void init_hedger (Price price, Quantity quantity);
|
||||
//b. called by the spreader when there is an order update
|
||||
// reported by the exchange
|
||||
void on_order_update(const SpreaderChildOrderState& order_update_message);
|
||||
|
||||
@@ -118,9 +118,7 @@ void SingleLegQuoter::update_other_leg_fills(size_t leg_index,
|
||||
"spread_key:{} leg_idx:{} fill_idx:{} filled_quantity:{}",
|
||||
_spreader.spreader_order_key(), _this_leg_data.leg_index(),
|
||||
leg_index, filled_quantity);
|
||||
// SP-44
|
||||
terminate();
|
||||
//_worker->on_other_leg_quoter_fill (leg_index, filled_quantity);
|
||||
_worker->on_other_leg_quoter_fill (leg_index, filled_quantity);
|
||||
}
|
||||
void SingleLegQuoter::update_order_price_quantity(Price price,
|
||||
Quantity quantity){
|
||||
|
||||
@@ -35,8 +35,8 @@ public:
|
||||
llevel(Info),
|
||||
forced_fill_qty(0),
|
||||
fill_mult(1),
|
||||
last_cache_warm_fill_ts(){
|
||||
}
|
||||
last_cache_warm_fill_ts()
|
||||
{}
|
||||
void set_forced_flag(){
|
||||
in_cache_warming_cycle=true;
|
||||
llevel = NoLog;
|
||||
|
||||
@@ -62,18 +62,11 @@ public:
|
||||
// const accessors ////////////////////
|
||||
///////////////////////////////////////
|
||||
OrderKey order_key() const {
|
||||
if (_is_live){
|
||||
// SP-44
|
||||
if (_child_order.is_active())
|
||||
return _child_order.key();
|
||||
return OrderKey(0);
|
||||
}
|
||||
if (_is_live)
|
||||
return _child_order.key();
|
||||
else
|
||||
return _test_only_order_key;
|
||||
}
|
||||
ChildOrder& child_order() {
|
||||
return _child_order;
|
||||
}
|
||||
api::orderman::OrderStatus status () const {
|
||||
return _status;
|
||||
}
|
||||
|
||||
@@ -183,12 +183,7 @@ public:
|
||||
SingleFillHedger& add_new_hedger(bts::Price hedge_price,
|
||||
bts::Quantity hedge_quantity){
|
||||
SingleFillHedger& rv = _hedger_manager.get_hedger();
|
||||
ChildOrder* p = nullptr;
|
||||
if(_leg_property_data.is_active_quoting()){
|
||||
bts_assert(_quoter_child_order_state!=nullptr);
|
||||
p = &(_quoter_child_order_state->child_order());
|
||||
}
|
||||
rv.init_hedger (hedge_price,hedge_quantity,p);
|
||||
rv.init_hedger (hedge_price,hedge_quantity);
|
||||
return rv;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user