1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-11 16:32:57 +00:00

Re-added Common prefix for common enums to avoid conflicts with library namespaces

This commit is contained in:
Jkorf
2022-01-24 14:31:57 +01:00
parent 37b1d18104
commit bb1071472f
4 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -7,7 +7,7 @@ namespace CryptoExchange.Net.CommonObjects
/// <summary>
/// Order type
/// </summary>
public enum OrderType
public enum CommonOrderType
{
/// <summary>
/// Limit type
@@ -26,7 +26,7 @@ namespace CryptoExchange.Net.CommonObjects
/// <summary>
/// Order side
/// </summary>
public enum OrderSide
public enum CommonOrderSide
{
/// <summary>
/// Buy order
@@ -40,7 +40,7 @@ namespace CryptoExchange.Net.CommonObjects
/// <summary>
/// Order status
/// </summary>
public enum OrderStatus
public enum CommonOrderStatus
{
/// <summary>
/// placed and not fully filled order
@@ -59,7 +59,7 @@ namespace CryptoExchange.Net.CommonObjects
/// <summary>
/// Position side
/// </summary>
public enum PositionSide
public enum CommonPositionSide
{
/// <summary>
/// Long position
+3 -3
View File
@@ -30,15 +30,15 @@ namespace CryptoExchange.Net.CommonObjects
/// <summary>
/// Status of the order
/// </summary>
public OrderStatus Status { get; set; }
public CommonOrderStatus Status { get; set; }
/// <summary>
/// Side of the order
/// </summary>
public OrderSide Side { get; set; }
public CommonOrderSide Side { get; set; }
/// <summary>
/// Type of the order
/// </summary>
public OrderType Type { get; set; }
public CommonOrderType Type { get; set; }
/// <summary>
/// Order time
/// </summary>
+1 -1
View File
@@ -52,7 +52,7 @@
/// <summary>
/// Position side
/// </summary>
public PositionSide? Side { get; set; }
public CommonPositionSide? Side { get; set; }
/// <summary>
/// Is isolated
/// </summary>
+2 -2
View File
@@ -139,7 +139,7 @@ namespace CryptoExchange.Net.Interfaces
/// <param name="accountId">[Optional] The account id to place the order on, required for some exchanges, ignored otherwise</param>
/// <param name="leverage">[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)</param>
/// <returns>The id of the resulting order</returns>
Task<WebCallResult<OrderId>> PlaceOrderAsync(string symbol, OrderSide side, OrderType type, decimal quantity, decimal? price = null, int? leverage = null, string? accountId = null);
Task<WebCallResult<OrderId>> PlaceOrderAsync(string symbol, CommonOrderSide side, CommonOrderType type, decimal quantity, decimal? price = null, int? leverage = null, string? accountId = null);
/// <summary>
/// Get position
@@ -163,6 +163,6 @@ namespace CryptoExchange.Net.Interfaces
/// <param name="price">The price of the order, only for limit orders</param>
/// <param name="accountId">[Optional] The account id to place the order on, required for some exchanges, ignored otherwise</param>
/// <returns>The id of the resulting order</returns>
Task<WebCallResult<OrderId>> PlaceOrderAsync(string symbol, OrderSide side, OrderType type, decimal quantity, decimal? price = null, string? accountId = null);
Task<WebCallResult<OrderId>> PlaceOrderAsync(string symbol, CommonOrderSide side, CommonOrderType type, decimal quantity, decimal? price = null, string? accountId = null);
}
}