You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
using Binance.TradeRobot.Model.Base;
|
|
using SDKAdapter.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SDKAdapter.APIClient
|
|
{
|
|
public class BaseAPIClient
|
|
{
|
|
public static BaseAPIClient Create(Enums.Exchange exchange, long uid, string apiKey, string secret)
|
|
{
|
|
if (exchange == Enums.Exchange.Binance)
|
|
return new BinanceAPIClient(uid, apiKey, secret);
|
|
return null;
|
|
}
|
|
|
|
protected long AccountId { get; private set; }
|
|
protected string ApiKey { get; private set; }
|
|
protected string Secret { get; private set; }
|
|
|
|
public BaseAPIClient(long uid, string apiKey, string secret)
|
|
{
|
|
this.AccountId = uid;
|
|
this.ApiKey = apiKey;
|
|
this.Secret = secret;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取逐仓杠杆账户资产
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
public virtual IList<IsolatedMarginAccountAsset> GetIsolatedMarginAccountAssets()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|
|
|