Skip to content

Commit

Permalink
Fix small futures account holdings json conversion bug (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonabreul authored Nov 28, 2023
1 parent 17fd111 commit abc706b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public override List<Holding> GetAccountHoldings()
}

return JsonConvert
.DeserializeObject<FuturesAccountInformation>(response.Content, CreateAccountConverter())
.DeserializeObject<FuturesAccountInformation>(response.Content)
.Positions
.Where(p => p.PositionAmt != 0)
.Select(x => new Holding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

namespace QuantConnect.BinanceBrokerage.Messages
{
internal class FuturesAccountInformation
public class FuturesAccountInformation
{
public List<FutureBalance> Assets { get; set; }
public List<FuturePosition> Positions { get; set; }
}

internal class FuturePosition
public class FuturePosition
{
public string Symbol { get; set; }
public decimal PositionAmt { get; set; }
Expand Down

0 comments on commit abc706b

Please sign in to comment.