API 키 설정 추가
This commit is contained in:
19
BitgetApi/Data/API/APIKeyInfo.cs
Normal file
19
BitgetApi/Data/API/APIKeyInfo.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BitgetApi.Data.API
|
||||
{
|
||||
public class APIKeyInfo
|
||||
{
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public string AccessKey { get; set; }
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public string SecretKey { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
47
BitgetApi/Data/API/APIKeyInfo_Bitget.cs
Normal file
47
BitgetApi/Data/API/APIKeyInfo_Bitget.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BitgetApi.Data.API
|
||||
{
|
||||
public class APIKeyInfo_Bitget : APIKeyInfo
|
||||
{
|
||||
public string PassphraseKey { get; set; } = string.Empty;
|
||||
public static List<APIKeyInfo_Bitget> GetAPIKeys()
|
||||
{
|
||||
var result = new List<APIKeyInfo_Bitget>();
|
||||
result.Add(APIKeyInfo_Bitget.김영호);
|
||||
result.Add(APIKeyInfo_Bitget.이장화);
|
||||
result.Add(APIKeyInfo_Bitget.이찬균);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static APIKeyInfo_Bitget 김영호 = new APIKeyInfo_Bitget()
|
||||
{
|
||||
Id = 0,
|
||||
Name = "김영호",
|
||||
AccessKey = "bg_fbf275132203dcdbdca0db1e4b2351bb",
|
||||
SecretKey = "40ad89ac5347b9c3164ddf8b8e1c464038705266b25049a4f21ca12f509603bd",
|
||||
PassphraseKey = "dudgh0505"
|
||||
};
|
||||
public static APIKeyInfo_Bitget 이장화 = new APIKeyInfo_Bitget()
|
||||
{
|
||||
Id = 1,
|
||||
Name = "이장화",
|
||||
AccessKey = "",
|
||||
SecretKey = "",
|
||||
PassphraseKey = ""
|
||||
};
|
||||
public static APIKeyInfo_Bitget 이찬균 = new APIKeyInfo_Bitget()
|
||||
{
|
||||
Id = 2,
|
||||
Name = "이찬균",
|
||||
AccessKey = "bg_db85fec3b0c623f6194a8357c6e385aa",
|
||||
SecretKey = "f396690a85196faf71d531782a4ecd45a3c2507943ee9c679e4a59fb7ab86ea3",
|
||||
PassphraseKey = "dlatlzxc12"
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -5,3 +5,7 @@ SecretKey
|
||||
40ad89ac5347b9c3164ddf8b8e1c464038705266b25049a4f21ca12f509603bd
|
||||
|
||||
|
||||
|
||||
이찬균
|
||||
bg_db85fec3b0c623f6194a8357c6e385aa
|
||||
f396690a85196faf71d531782a4ecd45a3c2507943ee9c679e4a59fb7ab86ea3
|
||||
16
BitgetApi/Data/GlobalOptions.cs
Normal file
16
BitgetApi/Data/GlobalOptions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using BitgetApi.Data.API;
|
||||
using BitgetAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BitgetApi.Data
|
||||
{
|
||||
public class GlobalOptions : BaseSettings<GlobalOptions>
|
||||
{
|
||||
public APIKeyInfo_Bitget SelectAPI { get; set; } = APIKeyInfo_Bitget.김영호;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user