mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-13 09:23:04 +00:00
d533557324
Websocket refactoring
35 lines
988 B
C#
35 lines
988 B
C#
using CryptoExchange.Net.Interfaces.CommonClients;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Client for accessing REST API's for different exchanges
|
|
/// </summary>
|
|
public interface ICryptoRestClient
|
|
{
|
|
/// <summary>
|
|
/// Get a list of all registered common ISpotClient types
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
IEnumerable<ISpotClient> GetSpotClients();
|
|
|
|
/// <summary>
|
|
/// Get an ISpotClient implementation by exchange name
|
|
/// </summary>
|
|
/// <param name="exchangeName"></param>
|
|
/// <returns></returns>
|
|
ISpotClient? SpotClient(string exchangeName);
|
|
|
|
/// <summary>
|
|
/// Try get
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <returns></returns>
|
|
T TryGet<T>(Func<T> createFunc);
|
|
}
|
|
}
|