1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-07 16:06:15 +00:00

Added PerAccount SharedLeverageSettingMode enum value, changed Side on SharedUserTrade to nullable

This commit is contained in:
Jkorf 2024-11-06 11:20:11 +01:00
parent 15657ba683
commit b5893c3b60
2 changed files with 7 additions and 3 deletions

View File

@ -12,6 +12,10 @@
/// <summary>
/// Leverage is configured for the symbol
/// </summary>
PerSymbol
PerSymbol,
/// <summary>
/// Leverage is configured for the entire account
/// </summary>
PerAccount
}
}

View File

@ -34,7 +34,7 @@ namespace CryptoExchange.Net.SharedApis
/// <summary>
/// Side of the trade
/// </summary>
public SharedOrderSide Side { get; set; }
public SharedOrderSide? Side { get; set; }
/// <summary>
/// Fee paid for the trade
/// </summary>
@ -51,7 +51,7 @@ namespace CryptoExchange.Net.SharedApis
/// <summary>
/// ctor
/// </summary>
public SharedUserTrade(string symbol, string orderId, string id, SharedOrderSide side, decimal quantity, decimal price, DateTime timestamp)
public SharedUserTrade(string symbol, string orderId, string id, SharedOrderSide? side, decimal quantity, decimal price, DateTime timestamp)
{
Symbol = symbol;
OrderId = orderId;