Test fixes
This commit is contained in:
parent
0a4f7150d6
commit
efec1eb906
|
@ -101,6 +101,7 @@ mod tests {
|
||||||
max_quote_lots: i64::MAX,
|
max_quote_lots: i64::MAX,
|
||||||
client_order_id: 0,
|
client_order_id: 0,
|
||||||
time_in_force,
|
time_in_force,
|
||||||
|
reduce_only: false,
|
||||||
params: OrderParams::Fixed {
|
params: OrderParams::Fixed {
|
||||||
price_lots,
|
price_lots,
|
||||||
order_type: PostOrderType::Limit,
|
order_type: PostOrderType::Limit,
|
||||||
|
@ -208,6 +209,7 @@ mod tests {
|
||||||
max_quote_lots: i64::MAX,
|
max_quote_lots: i64::MAX,
|
||||||
client_order_id: 42,
|
client_order_id: 42,
|
||||||
time_in_force: 0,
|
time_in_force: 0,
|
||||||
|
reduce_only: false,
|
||||||
params: OrderParams::Fixed {
|
params: OrderParams::Fixed {
|
||||||
price_lots,
|
price_lots,
|
||||||
order_type: PostOrderType::Limit,
|
order_type: PostOrderType::Limit,
|
||||||
|
@ -267,6 +269,7 @@ mod tests {
|
||||||
max_quote_lots: i64::MAX,
|
max_quote_lots: i64::MAX,
|
||||||
client_order_id: 43,
|
client_order_id: 43,
|
||||||
time_in_force: 0,
|
time_in_force: 0,
|
||||||
|
reduce_only: false,
|
||||||
params: OrderParams::Fixed {
|
params: OrderParams::Fixed {
|
||||||
price_lots,
|
price_lots,
|
||||||
order_type: PostOrderType::Limit,
|
order_type: PostOrderType::Limit,
|
||||||
|
@ -388,6 +391,7 @@ mod tests {
|
||||||
max_quote_lots: i64::MAX,
|
max_quote_lots: i64::MAX,
|
||||||
client_order_id: 43,
|
client_order_id: 43,
|
||||||
time_in_force: 0,
|
time_in_force: 0,
|
||||||
|
reduce_only: false,
|
||||||
params: OrderParams::Fixed {
|
params: OrderParams::Fixed {
|
||||||
price_lots: 1000,
|
price_lots: 1000,
|
||||||
order_type: PostOrderType::Limit,
|
order_type: PostOrderType::Limit,
|
||||||
|
@ -411,6 +415,7 @@ mod tests {
|
||||||
max_quote_lots: i64::MAX,
|
max_quote_lots: i64::MAX,
|
||||||
client_order_id: 43,
|
client_order_id: 43,
|
||||||
time_in_force: 0,
|
time_in_force: 0,
|
||||||
|
reduce_only: false,
|
||||||
params: OrderParams::Fixed {
|
params: OrderParams::Fixed {
|
||||||
price_lots: 1000,
|
price_lots: 1000,
|
||||||
order_type: PostOrderType::Limit,
|
order_type: PostOrderType::Limit,
|
||||||
|
@ -448,6 +453,7 @@ mod tests {
|
||||||
max_quote_lots: i64::MAX,
|
max_quote_lots: i64::MAX,
|
||||||
client_order_id: 43,
|
client_order_id: 43,
|
||||||
time_in_force: 0,
|
time_in_force: 0,
|
||||||
|
reduce_only: false,
|
||||||
params: OrderParams::ImmediateOrCancel { price_lots: 1000 },
|
params: OrderParams::ImmediateOrCancel { price_lots: 1000 },
|
||||||
},
|
},
|
||||||
&mut market,
|
&mut market,
|
||||||
|
|
|
@ -2411,7 +2411,7 @@ impl ClientInstruction for PerpPlaceOrderInstruction {
|
||||||
max_base_lots: self.max_base_lots,
|
max_base_lots: self.max_base_lots,
|
||||||
max_quote_lots: self.max_quote_lots,
|
max_quote_lots: self.max_quote_lots,
|
||||||
client_order_id: self.client_order_id,
|
client_order_id: self.client_order_id,
|
||||||
order_type: OrderType::Limit,
|
order_type: PlaceOrderType::Limit,
|
||||||
reduce_only: false,
|
reduce_only: false,
|
||||||
expiry_timestamp: 0,
|
expiry_timestamp: 0,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
@ -2479,6 +2479,7 @@ impl ClientInstruction for PerpPlaceOrderPeggedInstruction {
|
||||||
max_quote_lots: self.max_quote_lots,
|
max_quote_lots: self.max_quote_lots,
|
||||||
client_order_id: self.client_order_id,
|
client_order_id: self.client_order_id,
|
||||||
order_type: PlaceOrderType::Limit,
|
order_type: PlaceOrderType::Limit,
|
||||||
|
reduce_only: false,
|
||||||
expiry_timestamp: 0,
|
expiry_timestamp: 0,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue