첫 등록
This commit is contained in:
7
BitgetApi/Data/API/BitGet Access APIKey.txt
Normal file
7
BitgetApi/Data/API/BitGet Access APIKey.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
Access APIKey
|
||||
bg_fbf275132203dcdbdca0db1e4b2351bb
|
||||
|
||||
SecretKey
|
||||
40ad89ac5347b9c3164ddf8b8e1c464038705266b25049a4f21ca12f509603bd
|
||||
|
||||
|
||||
43
BitgetApi/Data/CandleData.cs
Normal file
43
BitgetApi/Data/CandleData.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using BitgetApi;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BitgetAPI.Data
|
||||
{
|
||||
|
||||
|
||||
public class CandleData
|
||||
{
|
||||
CommonProperty commonProperty = CommonProperty.Instance;
|
||||
|
||||
public DateTime Argument { get; set; }
|
||||
public double Low { get; set; }
|
||||
public double High { get; set; }
|
||||
public double Open { get; set; }
|
||||
public double Close { get; set; }
|
||||
// 기본 통화 거래량 (BTC)
|
||||
public double Vol_C { get; set; }
|
||||
// 견적 통화 거래량 USD
|
||||
public double Vol_USD { get; set; }
|
||||
// USDT 거래량
|
||||
public double Vol_USDT { get; set; }
|
||||
|
||||
public CandleData() { }
|
||||
|
||||
public CandleData(DateTime argument, double low, double high, double open, double close,
|
||||
double vol_C, double vol_USD, double vol_USDT)
|
||||
{
|
||||
this.Argument = argument;
|
||||
this.Low = low;
|
||||
this.High = high;
|
||||
this.Open = open;
|
||||
this.Close = close;
|
||||
this.Vol_C = vol_C;
|
||||
this.Vol_USD = vol_USD;
|
||||
this.Vol_USDT = vol_USDT;
|
||||
}
|
||||
}
|
||||
}
|
||||
20
BitgetApi/Data/CandleDataList.cs
Normal file
20
BitgetApi/Data/CandleDataList.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using BitgetApi;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BitgetAPI.Data
|
||||
{
|
||||
[Serializable]
|
||||
public class MarketCandleDataList
|
||||
{
|
||||
// 코인 종목
|
||||
public MarketInfo ConGoodsData { get; set; } = new MarketInfo();
|
||||
// 캔들 데이터 (1분)
|
||||
public Dictionary<CommonProperty.MCandleTimeType, List<CandleData>> candleDataList { get; set; }
|
||||
= new Dictionary<CommonProperty.MCandleTimeType, List<CandleData>>();
|
||||
|
||||
//uuid -> 추후 List로 변경 할 수 잇음
|
||||
public string Uuid { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
14
BitgetApi/Data/MarketInfo.cs
Normal file
14
BitgetApi/Data/MarketInfo.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BitgetAPI.Data
|
||||
{
|
||||
public class MarketInfo
|
||||
{
|
||||
public string ExchangePlace { get; set; }
|
||||
public string MarketName { get; set; }
|
||||
}
|
||||
}
|
||||
27
BitgetApi/Data/TradeData.cs
Normal file
27
BitgetApi/Data/TradeData.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BitgetAPI.Data
|
||||
{
|
||||
public class TradeData
|
||||
{
|
||||
public string type { get; set; }
|
||||
public string code { get; set; }
|
||||
public long timestamp { get; set; }
|
||||
public string trade_date { get; set; }
|
||||
public string trade_time { get; set; }
|
||||
public long trade_timestamp { get; set; }
|
||||
public double trade_price { get; set; }
|
||||
public double trade_volume { get; set; }
|
||||
public string ask_bid { get; set; }
|
||||
public double prev_closing_price { get; set; }
|
||||
public string change { get; set; }
|
||||
public double change_price { get; set; }
|
||||
public long sequential_id { get; set; }
|
||||
public string stream_type { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user