Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Nov 1, 2024
1 parent e86659a commit 5766066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WhiteBit.Net/Clients/V4Api/WhiteBitSocketClientV4Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ public async Task<CallResult<UpdateSubscription>> SubscribeToTradeUpdatesAsync(I
/// <inheritdoc />
public async Task<CallResult<decimal>> GetLastPriceAsync(string symbol, CancellationToken ct = default)
{
return await QueryAsync<decimal>(
var result = await QueryAsync<decimal?>(
"lastprice_request",
false,
ct,
symbol).ConfigureAwait(false);
return result.As(result.Data ?? default);
}

/// <inheritdoc />
Expand Down

0 comments on commit 5766066

Please sign in to comment.