Test fixes

This commit is contained in:
Christian Kamm 2022-11-09 10:51:03 +01:00
parent 0a4f7150d6
commit efec1eb906
2 changed files with 8 additions and 1 deletions

View File

@ -101,6 +101,7 @@ mod tests {
max_quote_lots: i64::MAX,
client_order_id: 0,
time_in_force,
reduce_only: false,
params: OrderParams::Fixed {
price_lots,
order_type: PostOrderType::Limit,
@ -208,6 +209,7 @@ mod tests {
max_quote_lots: i64::MAX,
client_order_id: 42,
time_in_force: 0,
reduce_only: false,
params: OrderParams::Fixed {
price_lots,
order_type: PostOrderType::Limit,
@ -267,6 +269,7 @@ mod tests {
max_quote_lots: i64::MAX,
client_order_id: 43,
time_in_force: 0,
reduce_only: false,
params: OrderParams::Fixed {
price_lots,
order_type: PostOrderType::Limit,
@ -388,6 +391,7 @@ mod tests {
max_quote_lots: i64::MAX,
client_order_id: 43,
time_in_force: 0,
reduce_only: false,
params: OrderParams::Fixed {
price_lots: 1000,
order_type: PostOrderType::Limit,
@ -411,6 +415,7 @@ mod tests {
max_quote_lots: i64::MAX,
client_order_id: 43,
time_in_force: 0,
reduce_only: false,
params: OrderParams::Fixed {
price_lots: 1000,
order_type: PostOrderType::Limit,
@ -448,6 +453,7 @@ mod tests {
max_quote_lots: i64::MAX,
client_order_id: 43,
time_in_force: 0,
reduce_only: false,
params: OrderParams::ImmediateOrCancel { price_lots: 1000 },
},
&mut market,

View File

@ -2411,7 +2411,7 @@ impl ClientInstruction for PerpPlaceOrderInstruction {
max_base_lots: self.max_base_lots,
max_quote_lots: self.max_quote_lots,
client_order_id: self.client_order_id,
order_type: OrderType::Limit,
order_type: PlaceOrderType::Limit,
reduce_only: false,
expiry_timestamp: 0,
limit: 10,
@ -2479,6 +2479,7 @@ impl ClientInstruction for PerpPlaceOrderPeggedInstruction {
max_quote_lots: self.max_quote_lots,
client_order_id: self.client_order_id,
order_type: PlaceOrderType::Limit,
reduce_only: false,
expiry_timestamp: 0,
limit: 10,
};