key 변경 및 API URL 변경
This commit is contained in:
@@ -19,9 +19,9 @@ namespace Million
|
||||
{
|
||||
|
||||
#region default로 가지고 있어야하는 데이터
|
||||
public static string accessKey = "4jfMUL3lpwJ5GQSszm3rPp5M47tD8ssfIGew2dDb";
|
||||
public static string secretKey = "iAasVxQt8CyADjzXaAZiF5VZXTZPdElJOP4m97Bz";
|
||||
public static UpbitAPI UpbitApi = new UpbitAPI(accessKey, secretKey);
|
||||
public static string kyhAccessKey = "FIkdR3xF4AxJpCI16xaM6qzQkVkFeQPBNONDDMtg";
|
||||
public static string kyhSecretKey = "Uk8iulXofcfw8EJvWY6WMoHsmWZ5GWHZ2d5uycli";
|
||||
public static UpbitAPI UpbitApi = new UpbitAPI(kyhAccessKey, kyhSecretKey);
|
||||
#endregion
|
||||
|
||||
#region Enumable
|
||||
@@ -228,8 +228,7 @@ namespace Million
|
||||
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_TryOrder = "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";
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace Million.WebMangement.Upbit
|
||||
/// <returns></returns>
|
||||
public Order TryOrder(string codeFullName, UpbitOrderSide side, double volume, double price, UpbitOrderType ord_type = UpbitOrderType.limit)
|
||||
{
|
||||
string url = UpbitURL_TryOrder;
|
||||
string url = UpbitURL_Orders;
|
||||
var namevalCollection = new NameValueCollection {
|
||||
{ "market", codeFullName },
|
||||
{ "side", side.ToString() },
|
||||
@@ -139,7 +139,7 @@ namespace Million.WebMangement.Upbit
|
||||
public Order CancelOrder(string uuid)
|
||||
{
|
||||
var url = UpbitURL_Order;
|
||||
var resResult = process.CallAPI(url, HttpMethod.Get, new NameValueCollection { { "uuid", uuid } });
|
||||
var resResult = process.CallAPI(url, HttpMethod.Delete, new NameValueCollection { { "uuid", uuid } });
|
||||
return WebServiceFunctions.GetOrderInformation(resResult);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user