Top Spread is also a security (forgot to mark it as a security, so it was showing as a uint in the ui)
This commit is contained in:
1 parent
6749cf40fa
commit
64b4f6cae0
2 files changed
+2
-2
No files matched your search
@@ -317,7 +317,7 @@ PyramidAlgo::_get_update_params(const Update& update,
|
||||
for (size_t i=0; i < curr_params.cover_spreads.size(); i++)
|
||||
if(new_params.cover_spreads[i] != curr_params.cover_spreads[i])
|
||||
return std::make_tuple(new_params,false,"Contracts can not be updated");
|
||||
return std::make_tuple(curr_params,true,std::string(""));
|
||||
return std::make_tuple(new_params,true,std::string(""));
|
||||
}
|
||||
else
|
||||
return std::make_tuple(curr_params,true,std::string(""));
|
||||
|
||||
@@ -122,7 +122,7 @@ extern "C" void init_pyramid_plugin(bts::SparkServices& srv) {
|
||||
|
||||
join_desc.set_dynamic_order_type("Pyramid");
|
||||
|
||||
*join_desc.add_param_desc() = param_uint32("Top Spread");
|
||||
*join_desc.add_param_desc() = param_security_key("Top Spread");
|
||||
*join_desc.add_param_desc() = param_uint32("Delete");
|
||||
*join_desc.add_param_desc() = param_security_key("Spread 1");
|
||||
*join_desc.add_param_desc() = param_uint32("Spread 1 Payup");
|
||||
|
||||
Reference in new issue
Block a user