diff --git a/CryptoExchange.Net/CommonObjects/Enums.cs b/CryptoExchange.Net/CommonObjects/Enums.cs index 2ea6b4b..7d1986f 100644 --- a/CryptoExchange.Net/CommonObjects/Enums.cs +++ b/CryptoExchange.Net/CommonObjects/Enums.cs @@ -7,7 +7,7 @@ namespace CryptoExchange.Net.CommonObjects /// /// Order type /// - public enum OrderType + public enum CommonOrderType { /// /// Limit type @@ -26,7 +26,7 @@ namespace CryptoExchange.Net.CommonObjects /// /// Order side /// - public enum OrderSide + public enum CommonOrderSide { /// /// Buy order @@ -40,7 +40,7 @@ namespace CryptoExchange.Net.CommonObjects /// /// Order status /// - public enum OrderStatus + public enum CommonOrderStatus { /// /// placed and not fully filled order @@ -59,7 +59,7 @@ namespace CryptoExchange.Net.CommonObjects /// /// Position side /// - public enum PositionSide + public enum CommonPositionSide { /// /// Long position diff --git a/CryptoExchange.Net/CommonObjects/Order.cs b/CryptoExchange.Net/CommonObjects/Order.cs index 7a77aa7..9d630c0 100644 --- a/CryptoExchange.Net/CommonObjects/Order.cs +++ b/CryptoExchange.Net/CommonObjects/Order.cs @@ -30,15 +30,15 @@ namespace CryptoExchange.Net.CommonObjects /// /// Status of the order /// - public OrderStatus Status { get; set; } + public CommonOrderStatus Status { get; set; } /// /// Side of the order /// - public OrderSide Side { get; set; } + public CommonOrderSide Side { get; set; } /// /// Type of the order /// - public OrderType Type { get; set; } + public CommonOrderType Type { get; set; } /// /// Order time /// diff --git a/CryptoExchange.Net/CommonObjects/Position.cs b/CryptoExchange.Net/CommonObjects/Position.cs index cc4bbd1..4319a9f 100644 --- a/CryptoExchange.Net/CommonObjects/Position.cs +++ b/CryptoExchange.Net/CommonObjects/Position.cs @@ -52,7 +52,7 @@ /// /// Position side /// - public PositionSide? Side { get; set; } + public CommonPositionSide? Side { get; set; } /// /// Is isolated /// diff --git a/CryptoExchange.Net/Interfaces/ISpotClient.cs b/CryptoExchange.Net/Interfaces/ISpotClient.cs index 2ea54ec..a64f33c 100644 --- a/CryptoExchange.Net/Interfaces/ISpotClient.cs +++ b/CryptoExchange.Net/Interfaces/ISpotClient.cs @@ -139,7 +139,7 @@ namespace CryptoExchange.Net.Interfaces /// [Optional] The account id to place the order on, required for some exchanges, ignored otherwise /// [Optional] Leverage for this order. This is needed for some exchanges. For exchanges where this is not needed this parameter is ignored (and should be set before hand) /// The id of the resulting order - Task> PlaceOrderAsync(string symbol, OrderSide side, OrderType type, decimal quantity, decimal? price = null, int? leverage = null, string? accountId = null); + Task> PlaceOrderAsync(string symbol, CommonOrderSide side, CommonOrderType type, decimal quantity, decimal? price = null, int? leverage = null, string? accountId = null); /// /// Get position @@ -163,6 +163,6 @@ namespace CryptoExchange.Net.Interfaces /// The price of the order, only for limit orders /// [Optional] The account id to place the order on, required for some exchanges, ignored otherwise /// The id of the resulting order - Task> PlaceOrderAsync(string symbol, OrderSide side, OrderType type, decimal quantity, decimal? price = null, string? accountId = null); + Task> PlaceOrderAsync(string symbol, CommonOrderSide side, CommonOrderType type, decimal quantity, decimal? price = null, string? accountId = null); } }