Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6784f1196 | ||
|
|
7f05a2c2af | ||
|
|
c3d2101dcd | ||
|
|
8855ea44b0 | ||
|
|
51f70ad5ed | ||
|
|
5aa3f1a684 | ||
|
|
5cd3a710bd | ||
|
|
6d8b4636ab | ||
|
|
64a75c4b48 | ||
|
|
143b6ce5d8 | ||
|
|
d5fc0c5a56 | ||
|
|
7c4daa0f4b | ||
|
|
5ea2a8d6b6 | ||
|
|
6e64f7c6df |
No files matched your search
@@ -4,6 +4,28 @@ weight = 3
|
||||
sort_by = "weight"
|
||||
insert_anchor_links = "right"
|
||||
+++
|
||||
## 2.15.0
|
||||
### User Visible Changes
|
||||
- Added ability to hide Ladder status messages via Ladder Settings -> Left Panel tab -> Show/Hide groupbox -> Status Message
|
||||
- Synthetic cloning now allows for any parameter to be changed, including tick size and leg contracts
|
||||
- Added ability to import synthetics from a CSV file; see our manual for further details on this process
|
||||
- Reduced Iceberg reloading latency
|
||||
### Bug Fixes
|
||||
- Fixed a bug where highlighted fills could lose their highlight status
|
||||
- Fixed a bug where the (Mini) OrderBook PIQ could be displaying an old value
|
||||
|
||||
## 2.14.3
|
||||
### Bug Fixes
|
||||
- Fixed a bug regarding ICE logon messaging
|
||||
|
||||
## 2.14.2
|
||||
### Bug Fixes
|
||||
- Fixed a bug regarding ICE messaging
|
||||
|
||||
## 2.14.1
|
||||
### Bug Fixes
|
||||
- Fixed a bug regarding ICE logon authentication
|
||||
|
||||
## 2.14.0
|
||||
### User Visible Changes
|
||||
- All ladders can now be recentered by (shift or alt) + double clicking over the Price column in a ladder
|
||||
|
||||
@@ -222,7 +222,8 @@ namespace bts.shell.spreader {
|
||||
new ContractLeg {
|
||||
Security = security?.CloneToMutable(),
|
||||
PriceMultiplier = price_multiplier,
|
||||
Quantity = quantity
|
||||
Side = quantity < 0 ? Side.Sell : Side.Buy,
|
||||
Quantity = Math.Abs(quantity)
|
||||
};
|
||||
|
||||
public LegSpreaderParams to_leg_params() {
|
||||
|
||||
@@ -121,7 +121,9 @@ namespace mbts {
|
||||
HighTick = tick_frac,
|
||||
PriceBreak = double.MaxValue,
|
||||
MainFraction = (uint)factor_out(tick.tick_base, 10),
|
||||
PriceDisplayFormat = (uint)tick.display_digits()
|
||||
PriceDisplayFormat = (uint)tick.display_digits(),
|
||||
PriceMultiplier = 1,
|
||||
CashPerPoint = 1
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -704,7 +704,7 @@
|
||||
</Style>
|
||||
</GroupBox.Style>
|
||||
<GroupBox.Header>
|
||||
<c:ExpanderToggleButton x:Name="GridExpanderToggle" IsChecked="True">
|
||||
<c:ExpanderToggleButton x:Name="GridExpanderToggle" BorderThickness="0" IsChecked="True">
|
||||
Grid
|
||||
</c:ExpanderToggleButton>
|
||||
</GroupBox.Header>
|
||||
@@ -725,7 +725,7 @@
|
||||
</GroupBox.Style>
|
||||
<GroupBox.Header>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<c:ExpanderToggleButton x:Name="PredicateAnimationsExpanderToggle" IsChecked="{Binding show_predicate_animations}">
|
||||
<c:ExpanderToggleButton x:Name="PredicateAnimationsExpanderToggle" BorderThickness="0" IsChecked="{Binding show_predicate_animations}">
|
||||
Sound/Notification Triggers
|
||||
</c:ExpanderToggleButton>
|
||||
<TextBlock Margin="{StaticResource LeftPush}">
|
||||
@@ -789,7 +789,7 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<c:ExpanderToggleButton x:Name="AnimationsExpanderToggle" IsChecked="{Binding show_animations}" Visibility="{Binding animations.Count, Converter={StaticResource IntNotZeroVisibilityConverter}}">
|
||||
<c:ExpanderToggleButton x:Name="AnimationsExpanderToggle" BorderThickness="0" IsChecked="{Binding show_animations}" Visibility="{Binding animations.Count, Converter={StaticResource IntNotZeroVisibilityConverter}}">
|
||||
Animations
|
||||
</c:ExpanderToggleButton>
|
||||
<TextBlock FontStyle="Italic" Foreground="Gray" Visibility="{Binding Visibility, ElementName=AnimationsExpanderToggle, Converter={StaticResource ReverseVisibilityConverter}}">
|
||||
@@ -904,7 +904,7 @@
|
||||
</Style>
|
||||
</GroupBox.Style>
|
||||
<GroupBox.Header>
|
||||
<c:ExpanderToggleButton x:Name="ColumnsExpanderToggle" IsChecked="True">
|
||||
<c:ExpanderToggleButton x:Name="ColumnsExpanderToggle" BorderThickness="0" IsChecked="True">
|
||||
Columns
|
||||
</c:ExpanderToggleButton>
|
||||
</GroupBox.Header>
|
||||
@@ -990,7 +990,7 @@
|
||||
</GroupBox.Style>
|
||||
<GroupBox.Header>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<c:ExpanderToggleButton x:Name="CellAnimationsExpanderToggle" IsChecked="{Binding show_cell_predicate_animations}">
|
||||
<c:ExpanderToggleButton x:Name="CellAnimationsExpanderToggle" BorderThickness="0" IsChecked="{Binding show_cell_predicate_animations}">
|
||||
<TextBlock Text="{Binding current_column.display_name, StringFormat='{}\'{0}\' Cell Animations'}"/>
|
||||
</c:ExpanderToggleButton>
|
||||
<TextBlock Margin="{StaticResource LeftPush}">
|
||||
@@ -1050,7 +1050,7 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<c:ExpanderToggleButton x:Name="CellAnimationsExpanderToggle" IsChecked="{Binding show_animations}" Visibility="{Binding animations.Count, Converter={StaticResource IntNotZeroVisibilityConverter}}">
|
||||
<c:ExpanderToggleButton x:Name="CellAnimationsExpanderToggle" BorderThickness="0" IsChecked="{Binding show_animations}" Visibility="{Binding animations.Count, Converter={StaticResource IntNotZeroVisibilityConverter}}">
|
||||
Animations
|
||||
</c:ExpanderToggleButton>
|
||||
<TextBlock FontStyle="Italic" Foreground="Gray" Visibility="{Binding Visibility, ElementName=CellAnimationsExpanderToggle, Converter={StaticResource ReverseVisibilityConverter}}">
|
||||
|
||||
@@ -1751,4 +1751,28 @@ bool AdminServiceUtils::has_id (uint32_t id){return id>0;}
|
||||
bool AdminServiceUtils::is_symbol_set (const std::string& symbol){
|
||||
return symbol !="*";
|
||||
}
|
||||
void AdminServiceUtils::get_spread_prod_qty(
|
||||
const api::Security& s,
|
||||
std::map<std::string,double>& out_map,
|
||||
double mult){
|
||||
if(s.has_spread())
|
||||
for (const auto& leg : s.spread().legs()){
|
||||
auto effective_leg_mult = mult *
|
||||
(leg.side() == api::Side::SIDE_BUY ? 1.0 : -1.0) *
|
||||
std::abs(leg.quantity());
|
||||
get_spread_prod_qty(leg.security(), out_map, effective_leg_mult);
|
||||
}
|
||||
else
|
||||
out_map[s.symbol()] = mult + out_map[s.symbol()];
|
||||
}
|
||||
bool AdminServiceUtils::residual_pos_spread(const api::Security& s){
|
||||
if(!s.has_spread())
|
||||
return false;
|
||||
std::map<std::string,double> prod_qty_map;
|
||||
get_spread_prod_qty(s,prod_qty_map,1.0);
|
||||
for(const auto& kv : prod_qty_map)
|
||||
if(std::abs(kv.second) > 0.0000001)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}}
|
||||
@@ -339,5 +339,10 @@ public:
|
||||
static bool has_id (uint32_t id);
|
||||
static bool is_symbol_set (const std::string& symbol);
|
||||
static void bootstrap_data (bts::api::admin::AdminData& data);
|
||||
static void get_spread_prod_qty(const api::Security& s,
|
||||
std::map<std::string,double>& out_map,
|
||||
double mult=1.0);
|
||||
// returns true if this spread effects the position of any outrights
|
||||
static bool residual_pos_spread(const api::Security& s);
|
||||
};
|
||||
}}
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <fmt/format.h>
|
||||
#include <fstream>
|
||||
#include <thread>
|
||||
#include <regex>
|
||||
|
||||
namespace bts {
|
||||
namespace jetfix {
|
||||
@@ -113,6 +114,13 @@ std::string store_path(std::string base_path,
|
||||
return result.string();
|
||||
}
|
||||
|
||||
bool is_valid_store_line(std::string const&line) {
|
||||
std::regex rx("\\d\\d\\d\\d\\d\\d\\d\\d-"
|
||||
"\\d\\d:\\d\\d:\\d\\d\\."
|
||||
"\\d\\d\\d . 8=FIX\\.4\\.2.*");
|
||||
return std::regex_match(line, rx);
|
||||
}
|
||||
|
||||
std::map<uint32_t, InMsgBuffer>
|
||||
load_replay(config::JetFIX::Connection const &cfg, std::string const &path,
|
||||
uint32_t ) {
|
||||
@@ -122,13 +130,14 @@ load_replay(config::JetFIX::Connection const &cfg, std::string const &path,
|
||||
std::ifstream f(path);
|
||||
std::string line_buffer;
|
||||
line_buffer.reserve(10 * 1024);
|
||||
auto header_size = sizeof("20150427-19:05:17.032 < ") - 1;
|
||||
std::string date_buffer("20150427-19:05:17.032");
|
||||
|
||||
for (;;) {
|
||||
std::getline(f, line_buffer);
|
||||
if (!f.eof()) {
|
||||
bts_assert(line_buffer.size() > header_size);
|
||||
if (!is_valid_store_line(line_buffer))
|
||||
continue;
|
||||
|
||||
if (line_buffer[22] == '<') {
|
||||
auto ts =
|
||||
datetime::parse_FIX_timestamp(line_buffer.substr(0, 21));
|
||||
|
||||
@@ -29,4 +29,6 @@ private:
|
||||
std::unique_ptr<PImpl> me;
|
||||
};
|
||||
|
||||
bool is_valid_store_line(std::string const&) ;
|
||||
|
||||
}}
|
||||
@@ -170,7 +170,7 @@ void ICEExecutionGateway::on_trader_login_timeout_expired()
|
||||
std::string m;
|
||||
if(lmsg.has<fix::Text>())
|
||||
m = lmsg.get<fix::Text>();
|
||||
LOG(OrderMan, Error, "Succesffully logging trader {} into ICE {} {}", u, m, me->gw_name.value());
|
||||
LOG(OrderMan, Info, "Successfully logging trader {} into ICE {} {}", u, m, me->gw_name.value());
|
||||
if(--me->nusers == 0)
|
||||
this->on_login();
|
||||
};
|
||||
@@ -192,11 +192,17 @@ void ICEExecutionGateway::on_trader_login_timeout_expired()
|
||||
{
|
||||
if(u.has_user_data() && u.user_data().has_exchange_user_data() && u.user_data().exchange_user_data().has_ice_data())
|
||||
{
|
||||
if(!u.is_present())
|
||||
continue;
|
||||
if(!u.is_active())
|
||||
continue;
|
||||
const auto& ice = u.user_data().exchange_user_data().ice_data();
|
||||
if(auth_traders.find(ice.authorized_trader()) == auth_traders.end())
|
||||
{
|
||||
if(ice.authorized_trader() == "")
|
||||
continue;
|
||||
if(ice.company_id() <= 0)
|
||||
continue;
|
||||
if(me->nusers == -1)
|
||||
me->nusers = 0;
|
||||
me->nusers++;
|
||||
|
||||
@@ -188,7 +188,7 @@ public:
|
||||
const SecurityLimitTree* sec_tree = _find_security(security.id());
|
||||
bts_assert(sec_tree != nullptr);
|
||||
rv = sec_tree->can_send_new_order(account_id, side, quantity, enforce_clip);
|
||||
if (rv.ok() && security.has_spread()){
|
||||
if (rv.ok() && security.has_spread() && sec_tree->is_residual_pos_spread()){
|
||||
// if its rejected we dont need to validate further,
|
||||
// however if its ok and its a spread we need to check
|
||||
// the legs
|
||||
@@ -226,7 +226,7 @@ public:
|
||||
bts_assert(sec_tree != nullptr);
|
||||
rv = sec_tree->can_update_order(account_id, side, from, to, enforce_clip);
|
||||
// same logic for the spread legs as above
|
||||
if (rv.ok() && security.has_spread()){
|
||||
if (rv.ok() && security.has_spread() && sec_tree->is_residual_pos_spread()){
|
||||
for (const api::ContractLeg& leg : security.spread().legs()){
|
||||
api::Side effective_leg_side = side == api::Side::SIDE_BUY ? leg.side() : LimiterUtils::invert_side(leg.side());
|
||||
Quantity effective_leg_from_qty = Quantity (from.value() * std::abs(leg.quantity()));
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "lib/orderman/limiter/SecurityLimitTree.h"
|
||||
#include "lib/api/service_helpers/AdminServiceUtils.h"
|
||||
|
||||
using namespace bts::api::admin;
|
||||
using namespace bts::admin;
|
||||
@@ -9,7 +10,11 @@ namespace orderman {
|
||||
SecurityLimitTree::SecurityLimitTree(
|
||||
const api::Security &security,
|
||||
ProductLimitTree &product_tree,
|
||||
const AdminData &admin_data) {
|
||||
const AdminData &admin_data)
|
||||
:
|
||||
_is_residual_pos_spread(
|
||||
bts::admin::AdminServiceUtils::residual_pos_spread(security))
|
||||
{
|
||||
for (const auto &account : admin_data.accounts()) {
|
||||
ProductLimitNode *product_node_ptr =
|
||||
product_tree.find_account(account.id());
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace orderman{
|
||||
// the actual data)
|
||||
class SecurityLimitTree{
|
||||
private:
|
||||
const bool _is_residual_pos_spread;
|
||||
std::vector<SecurityLimitNode> _tree;
|
||||
public:
|
||||
SecurityLimitTree(
|
||||
@@ -83,7 +84,10 @@ public:
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
const SecurityLimitNode* find_account (uint32_t account_id) const{
|
||||
return _find_account(account_id);
|
||||
}
|
||||
}
|
||||
bool is_residual_pos_spread() const{
|
||||
return _is_residual_pos_spread;
|
||||
}
|
||||
private:
|
||||
SecurityLimitNode* _find_account (uint32_t account_id){
|
||||
for(auto& node : _tree)
|
||||
|
||||
Reference in new issue
Block a user