public string CancelOrder(string order_id, BithumbOrderType type, string currency) { string url = "https://api.bithumb.com/trade/cancel"; return(CallAPI_Private_WithParam(url, new NameValueCollection { { "order_id", order_id }, { "type", type.ToString() }, { "currency", currency } })); }
public string GetOrders(string order_id, BithumbOrderType type, int count, DateTime after, string currency) { string url = "https://api.bithumb.com/info/orders"; return(CallAPI_Private_WithParam(url, new NameValueCollection { { "order_id", order_id }, { "type", type.ToString() }, { "after", new DateTimeOffset(after).ToUnixTimeSeconds().ToString() }, { "currency", currency } })); }
public string PlaceOrder(string order_currency, float units, int price, BithumbOrderType type) { string url = "https://api.bithumb.com/trade/place"; return(CallAPI_Private_WithParam(url, new NameValueCollection { { "order_currency", order_currency }, { "payment_currency", "KRW" }, { "units", units.ToString() }, { "price", price.ToString() }, { "type", type.ToString() } })); }