mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-09 08:56:13 +00:00
Re-added Common prefix for common enums to avoid conflicts with library namespaces
This commit is contained in:
parent
37b1d18104
commit
bb1071472f
@ -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
|
||||
|
@ -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>
|
||||
|
@ -52,7 +52,7 @@
|
||||
/// <summary>
|
||||
/// Position side
|
||||
/// </summary>
|
||||
public PositionSide? Side { get; set; }
|
||||
public CommonPositionSide? Side { get; set; }
|
||||
/// <summary>
|
||||
/// Is isolated
|
||||
/// </summary>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user