Cannot send price with market order

This commit is contained in:
Eric Harding committed 2020-06-08 23:09:10 -04:00
1 parent 77ae4703b3
commit 3fa8dbf112
1 file changed
+3 -1
+3 -1
View File
@@ -283,7 +283,9 @@ void ILinkGW::send_order(const CreateOrderMsg& create) {
auto party = send_party_details(*create.routing_record);
auto msg = _buffer.frame<iLinkBinary::NewOrderSingle514>();
msg.price().mantissa(to_price9(create.price));
if (create.order_type != api::orderman::NativeOrderType::NATIVE_ORDER_TYPE_MARKET) {
msg.price().mantissa(to_price9(create.price));
}
msg.orderQty(create.quantity.value());
msg.securityID(create.security->glbx().exchange_id());
msg.side(map_side(create.side));