176 lines
3.3 KiB
C#
176 lines
3.3 KiB
C#
|
|
using System.ComponentModel;
|
||
|
|
|
||
|
|
namespace Bitget_Server.Domain.Enums;
|
||
|
|
|
||
|
|
public enum WebConnectionType
|
||
|
|
{
|
||
|
|
POST = 0,
|
||
|
|
GET = 1
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum ExchangePlace
|
||
|
|
{
|
||
|
|
Upbit = 0,
|
||
|
|
Bithumb = 1,
|
||
|
|
Bitget = 2
|
||
|
|
}
|
||
|
|
|
||
|
|
// 코인 Payment 타입
|
||
|
|
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
|
||
|
|
}
|
||
|
|
|
||
|
|
// 거래소 Web 요청 타입
|
||
|
|
public enum ExchangeWebReqType
|
||
|
|
{
|
||
|
|
[Description("/Public/CandleStick")]
|
||
|
|
BithumbCandleStick = 0,
|
||
|
|
[Description("/public/ticker")]
|
||
|
|
BithumbCandleTicker = 1,
|
||
|
|
[Description("/public/Orderbook")]
|
||
|
|
BithumbMarket = 2,
|
||
|
|
|
||
|
|
[Description("UpbitCandle")]
|
||
|
|
UpbitCandleStick = 10,
|
||
|
|
[Description("UpbitMarket")]
|
||
|
|
UpbitMarket = 11,
|
||
|
|
|
||
|
|
[Description("BitgetMarketInfo_SPOT")]
|
||
|
|
BitgetMarket_Spot = 20,
|
||
|
|
[Description("BitgetMarketInfo_FUTURE")]
|
||
|
|
BitgetMarket_Future = 21,
|
||
|
|
[Description("BitgetMCandle_COIN")]
|
||
|
|
BitgetCandleStick_Coin = 22,
|
||
|
|
[Description("BitgetMCandle_FUTURE")]
|
||
|
|
BitgetCandleStick_Future = 23,
|
||
|
|
[Description("BitgetAccountList_FUTURE")]
|
||
|
|
BitgetAccountList_Future = 30,
|
||
|
|
[Description("BitgetOrder_FUTURE")]
|
||
|
|
BitgetOrder_Future = 31,
|
||
|
|
[Description("BitgetOrderCancel_FUTURE")]
|
||
|
|
BitgetCancelOrder_Future = 32,
|
||
|
|
[Description("BitgetPendingOrder_FUTURE")]
|
||
|
|
BitgetPendingOrder_Future = 33,
|
||
|
|
[Description("BitgetChangeLeverage_FUTURE")]
|
||
|
|
BitgetChangeLeverage_Future = 34,
|
||
|
|
[Description("BitgetChangeMarginMode_FUTURE")]
|
||
|
|
BitgetChangeMarginMode_Future = 35,
|
||
|
|
[Description("BitgetChangePositionMode_FUTURE")]
|
||
|
|
BitgetChangePositionMode_Future = 36,
|
||
|
|
[Description("BitgetOrderDetail_FUTURE")]
|
||
|
|
BitgetOrderDetail_Future = 37,
|
||
|
|
[Description("BitgetGetTimeStamp")]
|
||
|
|
BitgetGetTimeStamp = 38
|
||
|
|
}
|
||
|
|
|
||
|
|
// Bitget WebSocketType
|
||
|
|
public enum BitgetWebSocketType
|
||
|
|
{
|
||
|
|
현황정보_전체종목 = 0,
|
||
|
|
캔들정보 = 1,
|
||
|
|
보유List = 2,
|
||
|
|
주문하기 = 3
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum Side
|
||
|
|
{
|
||
|
|
[Description("buy")]
|
||
|
|
buy = 0,
|
||
|
|
[Description("sell")]
|
||
|
|
sell = 1
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum FuturePositionMode
|
||
|
|
{
|
||
|
|
[Description("one_way_mode")]
|
||
|
|
one_way_mode = 0,
|
||
|
|
[Description("hedge_mode")]
|
||
|
|
hedge_mode = 1
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum OrderType
|
||
|
|
{
|
||
|
|
[Description("limit")]
|
||
|
|
limit = 0,
|
||
|
|
[Description("market")]
|
||
|
|
market = 1
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum FutureMarginMode
|
||
|
|
{
|
||
|
|
[Description("isolated")]
|
||
|
|
isolated = 0,
|
||
|
|
[Description("crossed")]
|
||
|
|
crossed = 1
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum FutureSide
|
||
|
|
{
|
||
|
|
BuyShort = 0,
|
||
|
|
BuyLong = 1,
|
||
|
|
SellShort = 2,
|
||
|
|
SellLong = 3
|
||
|
|
}
|
||
|
|
|
||
|
|
// 시가/고가/종가/저가
|
||
|
|
public enum CandlePriceType
|
||
|
|
{
|
||
|
|
시가 = 1,
|
||
|
|
고가 = 2,
|
||
|
|
저가 = 3,
|
||
|
|
종가 = 4
|
||
|
|
}
|
||
|
|
|
||
|
|
// 캔들 데이터 간격
|
||
|
|
public enum MCandleTimeType
|
||
|
|
{
|
||
|
|
[Description("3m")]
|
||
|
|
M3 = 3,
|
||
|
|
[Description("5m")]
|
||
|
|
M5 = 5,
|
||
|
|
[Description("1m")]
|
||
|
|
M1 = 1,
|
||
|
|
[Description("15m")]
|
||
|
|
M15 = 15,
|
||
|
|
[Description("30m")]
|
||
|
|
M30 = 30,
|
||
|
|
[Description("1H")]
|
||
|
|
H1 = 60,
|
||
|
|
[Description("2H")]
|
||
|
|
H2 = 120,
|
||
|
|
[Description("3H")]
|
||
|
|
H3 = 180,
|
||
|
|
[Description("4H")]
|
||
|
|
H4 = 240,
|
||
|
|
[Description("6H")]
|
||
|
|
H6 = 360,
|
||
|
|
[Description("12H")]
|
||
|
|
H12 = 720
|
||
|
|
}
|
||
|
|
|
||
|
|
// 이동평균선 종류
|
||
|
|
public enum MovingAverageType
|
||
|
|
{
|
||
|
|
캔들 = 1,
|
||
|
|
거래량 = 2
|
||
|
|
}
|