Skip to content

Commit

Permalink
Fix v5 margin mode (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-shen authored Nov 28, 2023
1 parent 75de479 commit f8882ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion ByBit.Net/Enums/UnifiedMarginStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public enum UnifiedMarginStatus
/// Unified trade account, can trade linear perpetual, options and spot
/// </summary>
[Map("3")]
UnifiedTradeAccount
UnifiedTradeAccount,
/// <summary>
/// Unified trade account pro, can trade bulk order api endpoints
/// </summary>
[Map("4")]
UnifiedTradeAccountPro
}
}
4 changes: 2 additions & 2 deletions ByBit.Net/Objects/Models/V5/BybitAccountInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ namespace Bybit.Net.Objects.Models.V5
public class BybitAccountInfo
{
/// <summary>
/// Account status
/// Unified margin status
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public UnifiedMarginStatus AccountStatus { get; set; }
public UnifiedMarginStatus UnifiedMarginStatus { get; set; }
/// <summary>
/// Margin info
/// </summary>
Expand Down

0 comments on commit f8882ff

Please sign in to comment.