mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-11 16:32:57 +00:00
iexchange client improvements
This commit is contained in:
@@ -29,5 +29,9 @@ namespace CryptoExchange.Net.ExchangeInterfaces
|
|||||||
/// The asset fee was paid in
|
/// The asset fee was paid in
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? CommonFeeAsset { get; }
|
public string? CommonFeeAsset { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// Trade time
|
||||||
|
/// </summary>
|
||||||
|
DateTime CommonTradeTime { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,15 @@ namespace CryptoExchange.Net.ExchangeInterfaces
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IExchangeClient
|
public interface IExchangeClient
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Should be triggered on order placing
|
||||||
|
/// </summary>
|
||||||
|
event Action<ICommonOrderId> OnOrderPlaced;
|
||||||
|
/// <summary>
|
||||||
|
/// Should be triggered on order cancelling
|
||||||
|
/// </summary>
|
||||||
|
event Action<ICommonOrderId> OnOrderCanceled;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get the symbol name based on a base and quote asset
|
/// Get the symbol name based on a base and quote asset
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -146,5 +155,23 @@ namespace CryptoExchange.Net.ExchangeInterfaces
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Sell
|
Sell
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Common order status
|
||||||
|
/// </summary>
|
||||||
|
public enum OrderStatus
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// placed and not fully filled order
|
||||||
|
/// </summary>
|
||||||
|
Active,
|
||||||
|
/// <summary>
|
||||||
|
/// cancelled order
|
||||||
|
/// </summary>
|
||||||
|
Canceled,
|
||||||
|
/// <summary>
|
||||||
|
/// filled order
|
||||||
|
/// </summary>
|
||||||
|
Filled
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace CryptoExchange.Net.ExchangeInterfaces
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Status of the order
|
/// Status of the order
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string CommonStatus { get; }
|
public IExchangeClient.OrderStatus CommonStatus { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the order is active
|
/// Whether the order is active
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user