mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-09 17:06:19 +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>
|
/// <summary>
|
||||||
/// Order type
|
/// Order type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum OrderType
|
public enum CommonOrderType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Limit type
|
/// Limit type
|
||||||
@ -26,7 +26,7 @@ namespace CryptoExchange.Net.CommonObjects
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Order side
|
/// Order side
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum OrderSide
|
public enum CommonOrderSide
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Buy order
|
/// Buy order
|
||||||
@ -40,7 +40,7 @@ namespace CryptoExchange.Net.CommonObjects
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Order status
|
/// Order status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum OrderStatus
|
public enum CommonOrderStatus
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// placed and not fully filled order
|
/// placed and not fully filled order
|
||||||
@ -59,7 +59,7 @@ namespace CryptoExchange.Net.CommonObjects
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Position side
|
/// Position side
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum PositionSide
|
public enum CommonPositionSide
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Long position
|
/// Long position
|
||||||
|
@ -30,15 +30,15 @@ namespace CryptoExchange.Net.CommonObjects
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Status of the order
|
/// Status of the order
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public OrderStatus Status { get; set; }
|
public CommonOrderStatus Status { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Side of the order
|
/// Side of the order
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public OrderSide Side { get; set; }
|
public CommonOrderSide Side { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Type of the order
|
/// Type of the order
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public OrderType Type { get; set; }
|
public CommonOrderType Type { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Order time
|
/// Order time
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Position side
|
/// Position side
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public PositionSide? Side { get; set; }
|
public CommonPositionSide? Side { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Is isolated
|
/// Is isolated
|
||||||
/// </summary>
|
/// </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="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>
|
/// <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>
|
/// <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>
|
/// <summary>
|
||||||
/// Get position
|
/// 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="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>
|
/// <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>
|
/// <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