-
Notifications
You must be signed in to change notification settings - Fork 2
/
CandleRequest.cs
38 lines (34 loc) · 1001 Bytes
/
CandleRequest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Collections.Generic;
namespace PA.Trading.UAPI
{
public class CandleRequest
{
public CandleRequest()
{
}
public List<UCandle> Fetch(CandleRequestParams param)
{
List<UCandle> list = new List<UCandle>();
switch (param.Api)
{
case "fapi":
Binance.fapi.BinanceFApi fapi = new Binance.fapi.BinanceFApi();
list = fapi.Request(param);
break;
}
return list;
}
public List<USymbolPrice> FetchPrice(CandleRequestParams param)
{
List<USymbolPrice> list = new List<USymbolPrice>();
switch (param.Api)
{
case "sapi":
Binance.sapi.BinanceSApi fapi = new Binance.sapi.BinanceSApi();
list = fapi.Request(param);
break;
}
return list;
}
}
}