첫 등록
This commit is contained in:
159
BitgetApi/CommonProperty.cs
Normal file
159
BitgetApi/CommonProperty.cs
Normal file
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
|
||||
using BitgetAPI.Data;
|
||||
using BitgetAPI.Utils;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace BitgetApi
|
||||
{
|
||||
public class CommonProperty : BaseSettings<CommonProperty>
|
||||
{
|
||||
public enum WebConnectionType
|
||||
{
|
||||
POST = 0,
|
||||
GET = 1
|
||||
}
|
||||
|
||||
public enum ExchangePlace
|
||||
{
|
||||
Upbit = 0,
|
||||
Bithumb = 1,
|
||||
Bitget = 2
|
||||
}
|
||||
|
||||
// 코인 Payument 타입
|
||||
public enum PaymentType
|
||||
{
|
||||
KRW = 0,
|
||||
BTC = 1,
|
||||
USDT = 2,
|
||||
}
|
||||
|
||||
// 최신, 가장오래된, None
|
||||
public enum CandleType
|
||||
{
|
||||
None = 0,
|
||||
Old = 1,
|
||||
New = 2
|
||||
}
|
||||
|
||||
// Bitget FUTURE 코인 타입
|
||||
public enum BitgetProductType
|
||||
{
|
||||
COIN = 0,
|
||||
FUTURE = 1,
|
||||
MARGIN_보류 = 2
|
||||
}
|
||||
|
||||
public ExchangePlace selectedChangePlace;
|
||||
public PaymentType selectedPaymentType;
|
||||
public BitgetProductType selectedBitgetProductType;
|
||||
|
||||
public List<MarketInfo> marketInfoList = null;
|
||||
public List<MarketCandleDataList> candleDataLists = null;
|
||||
|
||||
/// <summary>
|
||||
/// TODO 업비트 기능 추가
|
||||
/// </summary>
|
||||
// 빗썸 Web 요청 타입
|
||||
public enum ExchangeWebReqType
|
||||
{
|
||||
#region 빗썸 웹 요청 타입
|
||||
[Description("/Public/CandleStick")]
|
||||
BithumbCandleStick = 0,
|
||||
[Description("/public/ticker")]
|
||||
BithumbCandleTicker = 1,
|
||||
[Description("/public/Orderbook")]
|
||||
BithumbMarket = 2,
|
||||
#endregion
|
||||
|
||||
#region 업비트 웹 요청 타입
|
||||
[Description("UpbitCandle")]
|
||||
UpbitCandleStick = 10,
|
||||
[Description("UpbitMarket")]
|
||||
UpbitMarket = 11,
|
||||
#endregion
|
||||
|
||||
#region
|
||||
[Description("BitgetMarketInfo_SPOT")]
|
||||
BitgetMarket_Spot = 20,
|
||||
[Description("BitgetMarketInfo_FUTURE")]
|
||||
BitgetMarket_Future = 21,
|
||||
[Description("BitgetMCandle_COIN")]
|
||||
BitgetCandleStick_Coin = 22,
|
||||
[Description("BitgetMCandle_FUTURE")]
|
||||
BitgetCandleStick_Future = 23,
|
||||
#endregion
|
||||
}
|
||||
// 시가/고가/종가/저가
|
||||
public enum CandlePriceType
|
||||
{
|
||||
시가 = 1,
|
||||
고가 = 2,
|
||||
저가 = 3,
|
||||
종가 = 4
|
||||
}
|
||||
|
||||
// 캔들 데이터 (1분) (3분) (5분) (10분) (15분) (30분) (1시간) (4시간)
|
||||
public enum MCandleTimeType
|
||||
{
|
||||
[Description("1m")]
|
||||
M1 = 1,
|
||||
[Description("3m")]
|
||||
M3 = 3,
|
||||
[Description("5m")]
|
||||
M5 = 5,
|
||||
[Description("15m")]
|
||||
M15 = 15,
|
||||
[Description("30m")]
|
||||
M30 = 30,
|
||||
[Description("1H")]
|
||||
H1 = 60,
|
||||
[Description("4H")]
|
||||
H4 = 240,
|
||||
[Description("6H")]
|
||||
H6 = 360,
|
||||
[Description("12H")]
|
||||
H12 = 720,
|
||||
[Description("1D")]
|
||||
D1 = 1440,
|
||||
[Description("3D")]
|
||||
D3 = 4320,
|
||||
[Description("1W")]
|
||||
W1 = 10000,
|
||||
[Description("1M")]
|
||||
MT1 = 100000
|
||||
}
|
||||
|
||||
|
||||
#region 업비트 URL
|
||||
public static string UpbitURL = "https://api.upbit.com/";
|
||||
public static string UpbitURL_MarketInfo = "https://api.upbit.com/v1/market/all";
|
||||
public static string UpbitURL_MCandleStick = "https://api.upbit.com/v1/candles/minutes/";
|
||||
public static string UpbitURL_DCandleStick = "https://api.upbit.com/v1/candles/days";
|
||||
public static string UpbitURL_WCandleStick = "https://api.upbit.com/v1/candles/weeks";
|
||||
public static string UpbitURL_MTCandleStick = "https://api.upbit.com/v1/candles/months";
|
||||
|
||||
public static string UpbitURL_Accounts = "https://api.upbit.com/v1/accounts";
|
||||
public static string UpbitURL_Ticker = "https://api.upbit.com/v1/ticker";
|
||||
public static string UpbitURL_Ticks = "https://api.upbit.com/v1/trades/ticks";
|
||||
|
||||
public static string UpbitURL_Orders = "https://api.upbit.com/v1/orders";
|
||||
public static string UpbitURL_Order = "https://api.upbit.com/v1/order";
|
||||
public static string UpbitURL_Orderbook = "https://api.upbit.com/v1/orderbook";
|
||||
public static string UpbitURL_OrderChace = "https://api.upbit.com/v1/orders/chance";
|
||||
#endregion
|
||||
|
||||
#region Bitget URL
|
||||
public static string BitgetURL = "https://api.upbit.com/";
|
||||
public static string BitgetURL_MarketInfo_COIN = "https://api.bitget.com/api/v2/spot/public/coins";
|
||||
public static string BitgetURL_MarketInfo_FUTURE = "https://api.bitget.com/api/v2/mix/market/tickers?productType=USDT-FUTURES";
|
||||
|
||||
public static string BitgetURL_MarketCandle_Coin = "https://api.bitget.com/api/v2/spot/market/candles?symbol={0}&granularity={1}in&startTime={2}&endTime={3}&limit={4}";
|
||||
public static string BitgetURL_MarketCandle_Future = "https://api.bitget.com/api/v2/mix/market/candles?symbol={0}&granularity={1}&limit={2}&productType={3}";
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user