mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-20 21:02:55 +00:00
Added nonce provider default implementation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace CryptoExchange.Net.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// A provider for a nonce value used when signing requests
|
||||
/// </summary>
|
||||
public interface INonceProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Get nonce value. Nonce value should be unique and incremental for each call
|
||||
/// </summary>
|
||||
/// <returns>Nonce value</returns>
|
||||
long GetNonce();
|
||||
}
|
||||
}
|
||||
@@ -100,5 +100,11 @@ namespace CryptoExchange.Net.Interfaces
|
||||
/// <param name="type">The type</param>
|
||||
/// <returns>Average fill price</returns>
|
||||
CallResult<decimal> CalculateAverageFillPrice(decimal quantity, OrderBookEntryType type);
|
||||
|
||||
/// <summary>
|
||||
/// String representation of the top x entries
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
string ToString(int rows);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user