Skip to content

Commit

Permalink
Added AveragePrice setting to Shared IFuturesOrderRestClient responses
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Oct 18, 2024
1 parent aae2d82 commit b684311
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ async Task<ExchangeWebResult<SharedFuturesOrder>> IFuturesOrderRestClient.GetFut
TimeInForce = ParseTimeInForce(order.Data.TimeInForce),
UpdateTime = order.Data.UpdateTime,
Leverage = order.Data.Leverage,
ReduceOnly = order.Data.ReduceOnly
ReduceOnly = order.Data.ReduceOnly,
AveragePrice = order.Data.AveragePrice == 0 ? null : order.Data.AveragePrice
});
}

Expand Down Expand Up @@ -264,7 +265,8 @@ async Task<ExchangeWebResult<IEnumerable<SharedFuturesOrder>>> IFuturesOrderRest
TimeInForce = ParseTimeInForce(x.TimeInForce),
UpdateTime = x.UpdateTime,
Leverage = x.Leverage,
ReduceOnly = x.ReduceOnly
ReduceOnly = x.ReduceOnly,
AveragePrice = x.AveragePrice == 0 ? null : x.AveragePrice
}).ToArray());
}

Expand Down Expand Up @@ -316,7 +318,8 @@ async Task<ExchangeWebResult<IEnumerable<SharedFuturesOrder>>> IFuturesOrderRest
TimeInForce = ParseTimeInForce(x.TimeInForce),
UpdateTime = x.UpdateTime,
Leverage = x.Leverage,
ReduceOnly = x.ReduceOnly
ReduceOnly = x.ReduceOnly,
AveragePrice = x.AveragePrice == 0 ? null : x.AveragePrice
}).ToArray(), nextToken);
}

Expand Down

0 comments on commit b684311

Please sign in to comment.