Skip to content

Commit

Permalink
Fixed timestamp serialization for socketClient.SpotApi queries
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Oct 21, 2024
1 parent 843099b commit cf21602
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Kraken.Net/Clients/SpotApi/KrakenSocketClientSpotApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ public async Task<CallResult<KrakenOrderResult>> PlaceOrderAsync(
ReduceOnly = reduceOnly,
Margin = margin,
PostOnly = postOnly,
EffectiveTime = startTime?.ToRfc3339String(),
ExpireTime = expireTime?.ToRfc3339String(),
Deadline = deadline?.ToRfc3339String(),
EffectiveTime = startTime?.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'"),
ExpireTime = expireTime?.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'"),
Deadline = deadline?.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'"),
IcebergQuantity = icebergQuantity,
FeePreference = feePreference,
NoMarketPriceProtection = noMarketPriceProtection,
Expand Down Expand Up @@ -377,7 +377,7 @@ public async Task<CallResult<IEnumerable<KrakenOrderResult>>> PlaceMultipleOrder
Token = token.Data,
Symbol = symbol,
ValidateOnly = validateOnly,
Deadline = deadline?.ToRfc3339String(),
Deadline = deadline?.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'"),
Orders = orders
};

Expand Down Expand Up @@ -425,7 +425,7 @@ public async Task<CallResult<KrakenSocketAmendOrderResult>> EditOrderAsync(
{
Token = token.Data,
ClientOrderId = clientOrderId,
Deadline = deadline?.ToRfc3339String(),
Deadline = deadline?.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'"),
IcebergQuantity = icebergQuantity,
LimitPriceType = limitPriceType,
OrderId = orderId,
Expand Down Expand Up @@ -479,7 +479,7 @@ public async Task<CallResult<KrakenSocketReplaceOrderResult>> ReplaceOrderAsync(
var request = new KrakenSocketReplaceOrderRequest
{
Token = token.Data,
Deadline = deadline?.ToRfc3339String(),
Deadline = deadline?.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'"),
IcebergQuantity = icebergQuantity,
OrderId = orderId,
PostOnly = postOnly,
Expand Down

0 comments on commit cf21602

Please sign in to comment.