1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-11-07 02:37:55 +00:00
Files
CryptoExchange.Net/CryptoExchange.Net/SharedApis/Models/SharedLeverageTier.cs
T
Jan Korf ae7504c26c Shared API's V2 (#289)
Added V2 Shared API's infrastructure
Added request coalescing
Added rate limiting admission logic
Fixed some rate limiting issues
2026-09-23 09:15:39 +02:00

55 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Leverage tier
/// </summary>
[DebuggerDisplay("[{Index}] {MinNotional} - {MaxNotional}")]
public record SharedLeverageTier : SharedSymbolModel
{
/// <summary>
/// Tier index
/// </summary>
public int Index { get; set; }
/// <summary>
/// The asset the notional value is in
/// </summary>
public string? Asset { get; set; }
/// <summary>
/// Min notional value for activation of this tier
/// </summary>
public decimal MinNotional { get; set; }
/// <summary>
/// Max notional value for this tier, null if no limit
/// </summary>
public decimal? MaxNotional { get; set; }
/// <summary>
/// Maintenance margin rate for this tier
/// </summary>
public decimal? MaintenanceMarginRate { get; set; }
/// <summary>
/// Max leverage for this tier
/// </summary>
public decimal? MaxLeverage { get; set; }
/// <summary>
/// ctor
/// </summary>
public SharedLeverageTier(SharedSymbol? sharedSymbol, string symbol, int index, string? asset, decimal minNotional, decimal? maxNotional, decimal? maintenanceMarginRate, decimal? maxLeverage)
: base(sharedSymbol, symbol)
{
Index = index;
Asset = asset;
MinNotional = minNotional;
MaxNotional = maxNotional;
MaintenanceMarginRate = maintenanceMarginRate;
MaxLeverage = maxLeverage;
}
}
}