From c2d7c3a86fe9cdc2c928e6f92a07578daab8d857 Mon Sep 17 00:00:00 2001 From: BitSprocket Date: Tue, 23 Oct 2018 06:33:22 -0700 Subject: [PATCH 1/3] Moved project to dotnet framework 4.6.2 --- .../Coinigy.API.old/Coinigy.API.csproj | 104 +++ Coinigy.API/Coinigy.API.old/CoinigyApi.cs | 643 ++++++++++++++++++ Coinigy.API/Coinigy.API.old/MarketDataType.cs | 11 + .../Properties/AssemblyInfo.cs | 29 + .../Responses/ActivityNotification.cs | 15 + .../Coinigy.API.old/Responses/AlertData.cs | 12 + .../Coinigy.API.old/Responses/AlertHistory.cs | 19 + .../Coinigy.API.old/Responses/Balance.cs | 15 + .../Responses/BalanceHistory.cs | 17 + .../Responses/BalanceHistoryList.cs | 11 + .../Coinigy.API.old/Responses/BaseResponse.cs | 11 + Coinigy.API/Coinigy.API.old/Responses/Data.cs | 17 + .../Coinigy.API.old/Responses/DataAsk.cs | 12 + .../Coinigy.API.old/Responses/DataBid.cs | 12 + .../Coinigy.API.old/Responses/DataHistory.cs | 13 + .../Coinigy.API.old/Responses/Exchange.cs | 16 + .../Responses/ExchangeAccount.cs | 20 + .../Coinigy.API.old/Responses/Market.cs | 15 + .../Coinigy.API.old/Responses/NewsItem.cs | 24 + .../Coinigy.API.old/Responses/Notification.cs | 18 + .../Coinigy.API.old/Responses/OpenAlert.cs | 19 + .../Coinigy.API.old/Responses/OpenOrder.cs | 27 + .../Coinigy.API.old/Responses/OrderHistory.cs | 27 + .../Coinigy.API.old/Responses/OrderType.cs | 12 + .../Coinigy.API.old/Responses/OrderTypes.cs | 12 + .../Coinigy.API.old/Responses/Orders.cs | 12 + .../Coinigy.API.old/Responses/PriceType.cs | 12 + .../Coinigy.API.old/Responses/Ticker.cs | 18 + .../Coinigy.API.old/Responses/UserInfo.cs | 43 ++ .../Coinigy.API.old/Responses/WatchedItem.cs | 23 + .../Responses/accounts_response.cs | 12 + .../Responses/activateApiKey_response.cs | 12 + .../Responses/activateTradingKey_response.cs | 12 + .../Responses/activity_response.cs | 12 + .../Responses/addAlert_response.cs | 12 + .../Responses/addApiKey_response.cs | 12 + .../Responses/addOrder_response.cs | 12 + .../Responses/alerts_response.cs | 12 + .../Responses/balanceHistory_response.cs | 12 + .../Responses/balances_response.cs | 12 + .../Responses/cancelOrder_response.cs | 12 + .../Responses/data_response.cs | 12 + .../Responses/deleteAlert_response.cs | 12 + .../Responses/deleteApiKey_response.cs | 12 + .../Responses/exchanges_response.cs | 12 + .../Responses/markets_response.cs | 12 + .../Responses/newsFeed_response.cs | 12 + .../Responses/orderTypes_response.cs | 12 + .../Responses/orders_response.cs | 12 + .../Responses/refreshBalance_response.cs | 12 + .../Responses/ticker_response.cs | 12 + .../Responses/updatePrefs_response.cs | 12 + .../Responses/updateTickers_response.cs | 12 + .../Responses/updateUser_response.cs | 12 + .../Responses/userInfo_response.cs | 12 + .../Responses/userWatchList_response.cs | 12 + Coinigy.API/Coinigy.API.sln | 16 +- Coinigy.API/Coinigy.API/Coinigy.API.csproj | 124 ++-- .../Coinigy.API/Properties/AssemblyInfo.cs | 29 +- Coinigy.API/Coinigy.API/packages.config | 9 +- 60 files changed, 1641 insertions(+), 88 deletions(-) create mode 100644 Coinigy.API/Coinigy.API.old/Coinigy.API.csproj create mode 100644 Coinigy.API/Coinigy.API.old/CoinigyApi.cs create mode 100644 Coinigy.API/Coinigy.API.old/MarketDataType.cs create mode 100644 Coinigy.API/Coinigy.API.old/Properties/AssemblyInfo.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/ActivityNotification.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/AlertData.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/AlertHistory.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/Balance.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/BalanceHistory.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/BalanceHistoryList.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/BaseResponse.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/Data.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/DataAsk.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/DataBid.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/DataHistory.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/Exchange.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/ExchangeAccount.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/Market.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/NewsItem.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/Notification.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/OpenAlert.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/OpenOrder.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/OrderHistory.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/OrderType.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/OrderTypes.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/Orders.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/PriceType.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/Ticker.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/UserInfo.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/WatchedItem.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/accounts_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/activateApiKey_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/activateTradingKey_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/activity_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/addAlert_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/addApiKey_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/addOrder_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/alerts_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/balanceHistory_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/balances_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/cancelOrder_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/data_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/deleteAlert_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/deleteApiKey_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/exchanges_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/markets_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/newsFeed_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/orderTypes_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/orders_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/refreshBalance_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/ticker_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/updatePrefs_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/updateTickers_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/updateUser_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/userInfo_response.cs create mode 100644 Coinigy.API/Coinigy.API.old/Responses/userWatchList_response.cs diff --git a/Coinigy.API/Coinigy.API.old/Coinigy.API.csproj b/Coinigy.API/Coinigy.API.old/Coinigy.API.csproj new file mode 100644 index 0000000..0b7da81 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Coinigy.API.csproj @@ -0,0 +1,104 @@ + + + + + 14.0 + Debug + AnyCPU + {3360E850-78D9-4B1A-83CB-B1F39ACAF77A} + Library + Properties + Coinigy.API + Coinigy.API + en-US + 512 + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + + + v5.0 + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/CoinigyApi.cs b/Coinigy.API/Coinigy.API.old/CoinigyApi.cs new file mode 100644 index 0000000..878e8fb --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/CoinigyApi.cs @@ -0,0 +1,643 @@ +//https://lisk.io/documentation?i=lisk-docs/APIReference +//Author: Allen Byron Penner +//TODO: fix the way errors are handled in http methods + +using System; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using Coinigy.API.Responses; +using Newtonsoft.Json; + +namespace Coinigy.API +{ + public class CoinigyApi + { + public CoinigyApi(string api_key, string api_secret, string serverBaseUrl = "https://api.coinigy.com/api/v1/", + string userAgent = + "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36") + { + User_Agent = userAgent; + Server_Url = serverBaseUrl; + Api_Key = api_key; + Api_Secret = api_secret; + } + + public string User_Agent { get; set; } + public string Server_Url { get; set; } + + private string Api_Key { get; } + + private string Api_Secret { get; } + + public userInfo_response UserInfo() + { + var url = "userInfo"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task UserInfoAsync() + { + var url = "userInfo"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public activity_response Activity() + { + var url = "activity"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task ActivityAsync() + { + var url = "activity"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public accounts_response Accounts() + { + var url = "accounts"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task AccountsAsync() + { + var url = "accounts"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public balances_response Balances(bool show_nils = false, string auth_ids = "") + { + var url = "balances"; + var pd = new List> + { + new KeyValuePair("show_nils", Convert.ToInt32(show_nils).ToString()), + new KeyValuePair("auth_ids", auth_ids) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task BalancesAsync(bool show_nils = false, string auth_ids = "") + { + var url = "balances"; + var pd = new List> + { + new KeyValuePair("show_nils", Convert.ToInt32(show_nils).ToString()), + new KeyValuePair("auth_ids", auth_ids) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public balanceHistory_response BalanceHistory(string date = "") + { + if (string.IsNullOrEmpty(date)) + date = DateTime.UtcNow.ToString("yyyy-MM-dd"); + var url = "balanceHistory"; + var pd = new List> + { + new KeyValuePair("date", date) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task BalanceHistoryAsync(string date = "") + { + if (string.IsNullOrEmpty(date)) + date = DateTime.UtcNow.ToString("yyyy-MM-dd"); + var url = "balanceHistory"; + var pd = new List> + { + new KeyValuePair("date", date) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public orders_response Orders() + { + var url = "orders"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task OrdersAsync() + { + var url = "orders"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public alerts_response Alerts() + { + var url = "alerts"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task AlertsAsync() + { + var url = "alerts"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public userWatchList_response UserWatchList() + { + var url = "userWatchList"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task UserWatchListAsync() + { + var url = "userWatchList"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public newsFeed_response NewsFeed() + { + var url = "newsFeed"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task NewsFeedAsync() + { + var url = "newsFeed"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public updateUser_response UpdateUser(string first_name, string last_name, string company, string phone, + string street1, string street2, string city, string state, string zip, string country) + { + var url = "updateUser"; + var pd = new List> + { + new KeyValuePair("first_name", first_name), + new KeyValuePair("last_name", last_name), + new KeyValuePair("last_name", company), + new KeyValuePair("last_name", phone), + new KeyValuePair("last_name", street1), + new KeyValuePair("last_name", street2), + new KeyValuePair("last_name", city), + new KeyValuePair("last_name", state), + new KeyValuePair("last_name", zip), + new KeyValuePair("last_name", country) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task UpdateUserAsync(string first_name, string last_name, string company, + string phone, string street1, string street2, string city, string state, string zip, string country) + { + var url = "updateUser"; + var pd = new List> + { + new KeyValuePair("first_name", first_name), + new KeyValuePair("last_name", last_name), + new KeyValuePair("last_name", company), + new KeyValuePair("last_name", phone), + new KeyValuePair("last_name", street1), + new KeyValuePair("last_name", street2), + new KeyValuePair("last_name", city), + new KeyValuePair("last_name", state), + new KeyValuePair("last_name", zip), + new KeyValuePair("last_name", country) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public updatePrefs_response UpdatePrefs(bool alert_email, bool alert_sms, bool trade_email, bool trade_sms, + bool balance_email) + { + var url = "updatePrefs"; + var pd = new List> + { + new KeyValuePair("alert_email", Convert.ToInt32(alert_email).ToString()), + new KeyValuePair("last_name", Convert.ToInt32(alert_sms).ToString()), + new KeyValuePair("last_name", Convert.ToInt32(trade_email).ToString()), + new KeyValuePair("last_name", Convert.ToInt32(trade_sms).ToString()), + new KeyValuePair("last_name", Convert.ToInt32(balance_email).ToString()) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task UpdatePrefsAsync(bool alert_email, bool alert_sms, bool trade_email, + bool trade_sms, bool balance_email) + { + var url = "updatePrefs"; + var pd = new List> + { + new KeyValuePair("alert_email", Convert.ToInt32(alert_email).ToString()), + new KeyValuePair("last_name", Convert.ToInt32(alert_sms).ToString()), + new KeyValuePair("last_name", Convert.ToInt32(trade_email).ToString()), + new KeyValuePair("last_name", Convert.ToInt32(trade_sms).ToString()), + new KeyValuePair("last_name", Convert.ToInt32(balance_email).ToString()) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public updateTickers_response UpdateTickers(string exch_mkt_ids) + { + var url = "updateTickers"; + var pd = new List> + { + new KeyValuePair("exch_mkt_ids", exch_mkt_ids) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task UpdateTickersAsync(string exch_mkt_ids) + { + var url = "updateTickers"; + var pd = new List> + { + new KeyValuePair("exch_mkt_ids", exch_mkt_ids) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public orderTypes_response OrderTypes() + { + var url = "orderTypes"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task OrderTypesAsync() + { + var url = "orderTypes"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public refreshBalance_response RefreshBalance(string auth_id) + { + var url = "refreshBalance"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task RefreshBalanceAsync(string auth_id) + { + var url = "refreshBalance"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public addAlert_response AddAlert(string exch_code, string market_name, string alert_price, + string alert_note = "") + { + var url = "addAlert"; + var pd = new List> + { + new KeyValuePair("exch_code", exch_code), + new KeyValuePair("market_name", market_name), + new KeyValuePair("alert_price", alert_price), + new KeyValuePair("alert_note", alert_note) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task AddAlertAsync(string exch_code, string market_name, string alert_price, + string alert_note = "") + { + var url = "addAlert"; + var pd = new List> + { + new KeyValuePair("exch_code", exch_code), + new KeyValuePair("market_name", market_name), + new KeyValuePair("alert_price", alert_price), + new KeyValuePair("alert_note", alert_note) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public deleteAlert_response DeleteAlert(string alert_id) + { + var url = "deleteAlert"; + var pd = new List> + { + new KeyValuePair("alert_id", alert_id) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task DeleteAlertAsync(string alert_id) + { + var url = "deleteAlert"; + var pd = new List> + { + new KeyValuePair("alert_id", alert_id) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public addApiKey_response AddApiKey(string api_key, string api_secret, string api_exch_id, string api_nickname) + { + var url = "addApiKey"; + var pd = new List> + { + new KeyValuePair("api_key", api_key), + new KeyValuePair("api_secret", api_secret), + new KeyValuePair("api_exch_id", api_exch_id), + new KeyValuePair("api_nickname", api_nickname) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task AddApiKeyAsync(string api_key, string api_secret, string api_exch_id, + string api_nickname) + { + var url = "addApiKey"; + var pd = new List> + { + new KeyValuePair("api_key", api_key), + new KeyValuePair("api_secret", api_secret), + new KeyValuePair("api_exch_id", api_exch_id), + new KeyValuePair("api_nickname", api_nickname) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public deleteApiKey_response DeleteApiKey(string auth_id) + { + var url = "deleteApiKey"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task DeleteApiKeyAsync(string auth_id) + { + var url = "deleteApiKey"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public activateApiKey_response ActivateApiKey(string auth_id, bool auth_active = true) + { + var url = "activateApiKey"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id), + new KeyValuePair("auth_active", Convert.ToInt32(auth_id).ToString()) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task ActivateApiKeyAsync(string auth_id, bool auth_active = true) + { + var url = "activateApiKey"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id), + new KeyValuePair("auth_active", Convert.ToInt32(auth_id).ToString()) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public activateTradingKey_response ActivateTradingKey(string auth_id, bool auth_trade = true) + { + var url = "activateTradingKey"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id), + new KeyValuePair("auth_trade", Convert.ToInt32(auth_id).ToString()) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task ActivateTradingKeyAsync(string auth_id, bool auth_trade = true) + { + var url = "activateTradingKey"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id), + new KeyValuePair("auth_trade", Convert.ToInt32(auth_id).ToString()) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public addOrder_response AddOrder(int auth_id, int exch_id, int mkt_id, int order_type_id, int price_type_id, + decimal limit_price, decimal order_quantity) + { + var url = "addOrder"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id.ToString()), + new KeyValuePair("exch_id", exch_id.ToString()), + new KeyValuePair("mkt_id", mkt_id.ToString()), + new KeyValuePair("order_type_id", order_type_id.ToString()), + new KeyValuePair("price_type_id", price_type_id.ToString()), + new KeyValuePair("limit_price", limit_price.ToString()), + new KeyValuePair("order_quantity", order_quantity.ToString()) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task AddOrderAsync(int auth_id, int exch_id, int mkt_id, int order_type_id, + int price_type_id, decimal limit_price, decimal order_quantity) + { + var url = "addOrder"; + var pd = new List> + { + new KeyValuePair("auth_id", auth_id.ToString()), + new KeyValuePair("exch_id", exch_id.ToString()), + new KeyValuePair("mkt_id", mkt_id.ToString()), + new KeyValuePair("order_type_id", order_type_id.ToString()), + new KeyValuePair("price_type_id", price_type_id.ToString()), + new KeyValuePair("limit_price", limit_price.ToString()), + new KeyValuePair("order_quantity", order_quantity.ToString()) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public cancelOrder_response CancelOrder(int internal_order_id) + { + var url = "cancelOrder"; + var pd = new List> + { + new KeyValuePair("internal_order_id", internal_order_id.ToString()) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task CancelOrderAsync(int internal_order_id) + { + var url = "cancelOrder"; + var pd = new List> + { + new KeyValuePair("internal_order_id", internal_order_id.ToString()) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public exchanges_response Exchanges() + { + var url = "exchanges"; + var gr = HttpPostRequest(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public async Task ExchangesAsync() + { + var url = "exchanges"; + var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); + return JsonConvert.DeserializeObject(gr); + } + + public markets_response Markets(string exchange_code) + { + var url = "markets"; + var pd = new List> + { + new KeyValuePair("exchange_code", exchange_code) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task MarketsAsync(string exchange_code) + { + var url = "markets"; + var pd = new List> + { + new KeyValuePair("exchange_code", exchange_code) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public data_response Data(string exchange_code, string exchange_market, MarketDataType type) + { + var url = "data"; + var typename = Enum.GetName(typeof(MarketDataType), type); + var pd = new List> + { + new KeyValuePair("exchange_code", exchange_code), + new KeyValuePair("exchange_market", exchange_market), + new KeyValuePair("type", typename) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task DataAsync(string exchange_code, string exchange_market, MarketDataType type) + { + var url = "data"; + var typename = Enum.GetName(typeof(MarketDataType), type); + var pd = new List> + { + new KeyValuePair("exchange_code", exchange_code), + new KeyValuePair("exchange_market", exchange_market), + new KeyValuePair("type", typename) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public ticker_response Ticker(string exchange_code, string exchange_market) + { + var url = "ticker"; + var pd = new List> + { + new KeyValuePair("exchange_code", exchange_code), + new KeyValuePair("exchange_market", exchange_market) + }; + var gr = HttpPostRequest(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + public async Task TickerAsync(string exchange_code, string exchange_market) + { + var url = "ticker"; + var pd = new List> + { + new KeyValuePair("exchange_code", exchange_code), + new KeyValuePair("exchange_market", exchange_market) + }; + var gr = await HttpPostRequestAsync(url, User_Agent, pd); + return JsonConvert.DeserializeObject(gr); + } + + private string HttpPostRequest(string url, string ua, List> postdata) + { + var client = new HttpClient(); + client.DefaultRequestHeaders.Add("User-Agent", ua); + client.DefaultRequestHeaders.Add("X-API-KEY", Api_Key); + client.DefaultRequestHeaders.Add("X-API-SECRET", Api_Secret); + + var content = new FormUrlEncodedContent(postdata); + + var response = client.PostAsync(Server_Url + url, content).Result; + + return response.IsSuccessStatusCode + ? response.Content.ReadAsStringAsync().Result + : "ERROR:" + response.StatusCode + " " + response.ReasonPhrase + " | " + response.RequestMessage; + } + + private async Task HttpPostRequestAsync(string url, string ua, + List> postdata) + { + var client = new HttpClient(); + client.DefaultRequestHeaders.Add("User-Agent", ua); + client.DefaultRequestHeaders.Add("X-API-KEY", Api_Key); + client.DefaultRequestHeaders.Add("X-API-SECRET", Api_Secret); + + var content = new FormUrlEncodedContent(postdata); + + var response = await client.PostAsync(Server_Url + url, content); + + return response.IsSuccessStatusCode + ? await response.Content.ReadAsStringAsync() + : "ERROR:" + response.StatusCode + " " + response.ReasonPhrase + " | " + response.RequestMessage; + } + } +} diff --git a/Coinigy.API/Coinigy.API.old/MarketDataType.cs b/Coinigy.API/Coinigy.API.old/MarketDataType.cs new file mode 100644 index 0000000..25007c4 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/MarketDataType.cs @@ -0,0 +1,11 @@ +namespace Coinigy.API +{ + public enum MarketDataType + { + history, + asks, + bids, + orders, + all + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Properties/AssemblyInfo.cs b/Coinigy.API/Coinigy.API.old/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..cf82844 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Resources; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. + +[assembly: AssemblyTitle("Coinigy.API")] +[assembly: AssemblyDescription("A portable API library to interact with Coinigy.com.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Coinigy Inc.")] +[assembly: AssemblyProduct("Coinigy.API")] +[assembly: AssemblyCopyright("Copyright © 2016 Coinigy Inc.")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] + +[assembly: AssemblyVersion("0.1.0.*")] \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/ActivityNotification.cs b/Coinigy.API/Coinigy.API.old/Responses/ActivityNotification.cs new file mode 100644 index 0000000..e520a3a --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/ActivityNotification.cs @@ -0,0 +1,15 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class ActivityNotification + { + public string notification_style; + public string notification_time_added; + public string notification_title_vars; + public string notification_type_message; + public string notification_type_title; + public string notification_vars; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/AlertData.cs b/Coinigy.API/Coinigy.API.old/Responses/AlertData.cs new file mode 100644 index 0000000..a6e89a8 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/AlertData.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class AlertData + { + public List alert_history; + public List open_alerts; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/AlertHistory.cs b/Coinigy.API/Coinigy.API.old/Responses/AlertHistory.cs new file mode 100644 index 0000000..cae1da1 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/AlertHistory.cs @@ -0,0 +1,19 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class AlertHistory + { + public string alert_history_id; + public string alert_note; + public string alert_price; + public string display_name; + public string exch_name; + public string mkt_name; + public string @operator; + public string operator_text; + public string price; + public string timestamp; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Balance.cs b/Coinigy.API/Coinigy.API.old/Responses/Balance.cs new file mode 100644 index 0000000..38ca1b1 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/Balance.cs @@ -0,0 +1,15 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class Balance + { + public string balance_amount_avail; + public string balance_amount_held; + public string balance_amount_total; + public string balance_curr_code; + public string btc_balance; + public string last_price; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/BalanceHistory.cs b/Coinigy.API/Coinigy.API.old/Responses/BalanceHistory.cs new file mode 100644 index 0000000..cfcbe93 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/BalanceHistory.cs @@ -0,0 +1,17 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class BalanceHistory + { + public string auth_id; + public string balance_amount_avail; + public string balance_amount_held; + public string balance_amount_total; + public string balance_curr_code; + public string balance_date; + public string btc_value; + public string timestamp; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/BalanceHistoryList.cs b/Coinigy.API/Coinigy.API.old/Responses/BalanceHistoryList.cs new file mode 100644 index 0000000..a64c992 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/BalanceHistoryList.cs @@ -0,0 +1,11 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class BalanceHistoryList + { + public List balance_history; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/BaseResponse.cs b/Coinigy.API/Coinigy.API.old/Responses/BaseResponse.cs new file mode 100644 index 0000000..bf854d5 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/BaseResponse.cs @@ -0,0 +1,11 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class BaseResponse + { + public string err_msg; + public string err_num; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Data.cs b/Coinigy.API/Coinigy.API.old/Responses/Data.cs new file mode 100644 index 0000000..ebf9063 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/Data.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class Data + { + public List asks; + public List bids; + public string exch_code; + public List history; + public string primary_curr_code; + public string secondary_curr_code; + public string type; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/DataAsk.cs b/Coinigy.API/Coinigy.API.old/Responses/DataAsk.cs new file mode 100644 index 0000000..399d067 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/DataAsk.cs @@ -0,0 +1,12 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class DataAsk + { + public string price; + public string quantity; + public string total; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/DataBid.cs b/Coinigy.API/Coinigy.API.old/Responses/DataBid.cs new file mode 100644 index 0000000..8a4cdb3 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/DataBid.cs @@ -0,0 +1,12 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class DataBid + { + public string price; + public string quantity; + public string total; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/DataHistory.cs b/Coinigy.API/Coinigy.API.old/Responses/DataHistory.cs new file mode 100644 index 0000000..47640f4 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/DataHistory.cs @@ -0,0 +1,13 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class DataHistory + { + public string price; + public string quantity; + public string time_local; + public string type; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Exchange.cs b/Coinigy.API/Coinigy.API.old/Responses/Exchange.cs new file mode 100644 index 0000000..5168cfd --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/Exchange.cs @@ -0,0 +1,16 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class Exchange + { + public string exch_balance_enabled; + public string exch_code; + public string exch_fee; + public string exch_id; + public string exch_name; + public string exch_trade_enabled; + public string exch_url; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/ExchangeAccount.cs b/Coinigy.API/Coinigy.API.old/Responses/ExchangeAccount.cs new file mode 100644 index 0000000..69aac44 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/ExchangeAccount.cs @@ -0,0 +1,20 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class ExchangeAccount + { + public string auth_active; + public string auth_id; + public string auth_key; + public string auth_nickname; + public string auth_optional1; + public string auth_secret; + public string auth_trade; + public string auth_updated; + public string exch_id; + public string exch_name; + public string exch_trade_enabled; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Market.cs b/Coinigy.API/Coinigy.API.old/Responses/Market.cs new file mode 100644 index 0000000..ad45190 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/Market.cs @@ -0,0 +1,15 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class Market + { + public string exch_code; + public string exch_id; + public string exch_name; + public string exchmkt_id; + public string mkt_id; + public string mkt_name; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/NewsItem.cs b/Coinigy.API/Coinigy.API.old/Responses/NewsItem.cs new file mode 100644 index 0000000..78c441d --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/NewsItem.cs @@ -0,0 +1,24 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class NewsItem + { + public string date_field; + public string feed_description; + public string feed_enabled; + public string feed_id; + public string feed_image; + public string feed_name; + public string feed_url; + public string id; + public string pubDate; + public string published_date; + public string timestamp; + public string title; + public string title_field; + public string url; + public string url_field; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Notification.cs b/Coinigy.API/Coinigy.API.old/Responses/Notification.cs new file mode 100644 index 0000000..fe5a501 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/Notification.cs @@ -0,0 +1,18 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class Notification + { + public string notification_id; + public string notification_pinned; + public string notification_sound; + public string notification_sound_id; + public string notification_style; + public string notification_title_vars; + public string notification_type_message; + public string notification_type_title; + public string notification_vars; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OpenAlert.cs b/Coinigy.API/Coinigy.API.old/Responses/OpenAlert.cs new file mode 100644 index 0000000..01a7159 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/OpenAlert.cs @@ -0,0 +1,19 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class OpenAlert + { + public string alert_added; + public string alert_id; + public string alert_note; + public string display_name; + public string exch_code; + public string exch_name; + public string mkt_name; + public string @operator; + public string operator_text; + public string price; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OpenOrder.cs b/Coinigy.API/Coinigy.API.old/Responses/OpenOrder.cs new file mode 100644 index 0000000..a57655b --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/OpenOrder.cs @@ -0,0 +1,27 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class OpenOrder + { + public string auth_id; + public string auth_nickname; + public string display_name; + public string exch_code; + public string exch_name; + public string foreign_order_id; + public string limit_price; + public string mkt_name; + public string @operator; + public string order_id; + public string order_price_type; + public string order_status; + public string order_time; + public string order_type; + public string price_type_id; + public string quantity; + public string quantity_remaining; + public string stop_price; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OrderHistory.cs b/Coinigy.API/Coinigy.API.old/Responses/OrderHistory.cs new file mode 100644 index 0000000..590f908 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/OrderHistory.cs @@ -0,0 +1,27 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class OrderHistory + { + public string auth_id; + public string auth_nickname; + public string display_name; + public string exch_code; + public string exch_id; + public string exch_name; + public string executed_price; + public string last_updated; + public string limit_price; + public string mkt_name; + public string order_id; + public string order_price_type; + public string order_status; + public string order_time; + public string order_type; + public string quantity; + public string quantity_remaining; + public string unixtime; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OrderType.cs b/Coinigy.API/Coinigy.API.old/Responses/OrderType.cs new file mode 100644 index 0000000..ca5e365 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/OrderType.cs @@ -0,0 +1,12 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class OrderType + { + public string name; + public string order; + public string order_type_id; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OrderTypes.cs b/Coinigy.API/Coinigy.API.old/Responses/OrderTypes.cs new file mode 100644 index 0000000..e113a7d --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/OrderTypes.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class OrderTypes + { + public List order_types; + public List price_types; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Orders.cs b/Coinigy.API/Coinigy.API.old/Responses/Orders.cs new file mode 100644 index 0000000..ea40edc --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/Orders.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class Orders + { + public List open_orders; + public List order_history; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/PriceType.cs b/Coinigy.API/Coinigy.API.old/Responses/PriceType.cs new file mode 100644 index 0000000..d5ecb29 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/PriceType.cs @@ -0,0 +1,12 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class PriceType + { + public string name; + public string order; + public string price_type_id; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Ticker.cs b/Coinigy.API/Coinigy.API.old/Responses/Ticker.cs new file mode 100644 index 0000000..62d0080 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/Ticker.cs @@ -0,0 +1,18 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class Ticker + { + public string ask; + public string bid; + public string current_volume; + public string exchange; + public string high_trade; + public string last_trade; + public string low_trade; + public string market; + public string timestamp; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/UserInfo.cs b/Coinigy.API/Coinigy.API.old/Responses/UserInfo.cs new file mode 100644 index 0000000..e8bcf8d --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/UserInfo.cs @@ -0,0 +1,43 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class UserInfo + { + public string active; + public string chat_enabled; + public string chat_nick; + public string city; + public string company; + public string country; + public string created_on; + public string custom_ticker; + public string email; + public string first_name; + public string last_active; + public string last_login; + public string last_name; + public string newsletter; + public string phone; + public string pref_alert_email; + public string pref_alert_mobile; + public string pref_alert_sms; + public bool pref_app_device_id; + public string pref_balance_email; + public string pref_referral_code; + public string pref_subscription_expires; + public string pref_trade_email; + public string pref_trade_mobile; + public string pref_trade_sms; + public string referral_balance; + public string state; + public string street1; + public string street2; + public string subscription_status; + public string ticker_enabled; + public string ticker_indicator_time_type; + public string two_factor; + public string zip; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/WatchedItem.cs b/Coinigy.API/Coinigy.API.old/Responses/WatchedItem.cs new file mode 100644 index 0000000..3b59da4 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/WatchedItem.cs @@ -0,0 +1,23 @@ +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class WatchedItem + { + public string btc_volume; + public string current_volume; + public string exch_code; + public string exch_name; + public string exchmkt_id; + public string fiat_market; + public string high_trade; + public string last_price; + public string low_trade; + public string mkt_name; + public string prev_price; + public string primary_currency_name; + public string secondary_currency_name; + public string server_time; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/accounts_response.cs b/Coinigy.API/Coinigy.API.old/Responses/accounts_response.cs new file mode 100644 index 0000000..5fefff3 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/accounts_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class accounts_response : BaseResponse + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/activateApiKey_response.cs b/Coinigy.API/Coinigy.API.old/Responses/activateApiKey_response.cs new file mode 100644 index 0000000..e0d5593 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/activateApiKey_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class activateApiKey_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/activateTradingKey_response.cs b/Coinigy.API/Coinigy.API.old/Responses/activateTradingKey_response.cs new file mode 100644 index 0000000..0c18fb3 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/activateTradingKey_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class activateTradingKey_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/activity_response.cs b/Coinigy.API/Coinigy.API.old/Responses/activity_response.cs new file mode 100644 index 0000000..a77c264 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/activity_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class activity_response : BaseResponse + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/addAlert_response.cs b/Coinigy.API/Coinigy.API.old/Responses/addAlert_response.cs new file mode 100644 index 0000000..ad6cf44 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/addAlert_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class addAlert_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/addApiKey_response.cs b/Coinigy.API/Coinigy.API.old/Responses/addApiKey_response.cs new file mode 100644 index 0000000..94887ab --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/addApiKey_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class addApiKey_response : BaseResponse + { + public long data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/addOrder_response.cs b/Coinigy.API/Coinigy.API.old/Responses/addOrder_response.cs new file mode 100644 index 0000000..51e055c --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/addOrder_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class addOrder_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/alerts_response.cs b/Coinigy.API/Coinigy.API.old/Responses/alerts_response.cs new file mode 100644 index 0000000..4648aa2 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/alerts_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class alerts_response : BaseResponse + { + public AlertData data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/balanceHistory_response.cs b/Coinigy.API/Coinigy.API.old/Responses/balanceHistory_response.cs new file mode 100644 index 0000000..12235b5 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/balanceHistory_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class balanceHistory_response : BaseResponse + { + public BalanceHistoryList data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/balances_response.cs b/Coinigy.API/Coinigy.API.old/Responses/balances_response.cs new file mode 100644 index 0000000..f033833 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/balances_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class balances_response + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/cancelOrder_response.cs b/Coinigy.API/Coinigy.API.old/Responses/cancelOrder_response.cs new file mode 100644 index 0000000..5834803 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/cancelOrder_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class cancelOrder_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/data_response.cs b/Coinigy.API/Coinigy.API.old/Responses/data_response.cs new file mode 100644 index 0000000..25ba188 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/data_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class data_response : BaseResponse + { + public Data data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/deleteAlert_response.cs b/Coinigy.API/Coinigy.API.old/Responses/deleteAlert_response.cs new file mode 100644 index 0000000..d681092 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/deleteAlert_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class deleteAlert_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/deleteApiKey_response.cs b/Coinigy.API/Coinigy.API.old/Responses/deleteApiKey_response.cs new file mode 100644 index 0000000..8e71f48 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/deleteApiKey_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class deleteApiKey_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/exchanges_response.cs b/Coinigy.API/Coinigy.API.old/Responses/exchanges_response.cs new file mode 100644 index 0000000..65fba1b --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/exchanges_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class exchanges_response : BaseResponse + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/markets_response.cs b/Coinigy.API/Coinigy.API.old/Responses/markets_response.cs new file mode 100644 index 0000000..6b39169 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/markets_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class markets_response : BaseResponse + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/newsFeed_response.cs b/Coinigy.API/Coinigy.API.old/Responses/newsFeed_response.cs new file mode 100644 index 0000000..c4df0e6 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/newsFeed_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class newsFeed_response : BaseResponse + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/orderTypes_response.cs b/Coinigy.API/Coinigy.API.old/Responses/orderTypes_response.cs new file mode 100644 index 0000000..9926caa --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/orderTypes_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class orderTypes_response : BaseResponse + { + public OrderTypes data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/orders_response.cs b/Coinigy.API/Coinigy.API.old/Responses/orders_response.cs new file mode 100644 index 0000000..1ccf9c8 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/orders_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class orders_response : BaseResponse + { + public Orders data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/refreshBalance_response.cs b/Coinigy.API/Coinigy.API.old/Responses/refreshBalance_response.cs new file mode 100644 index 0000000..b46480b --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/refreshBalance_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class refreshBalance_response : BaseResponse + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/ticker_response.cs b/Coinigy.API/Coinigy.API.old/Responses/ticker_response.cs new file mode 100644 index 0000000..21de93d --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/ticker_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class ticker_response : BaseResponse + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/updatePrefs_response.cs b/Coinigy.API/Coinigy.API.old/Responses/updatePrefs_response.cs new file mode 100644 index 0000000..98938b0 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/updatePrefs_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class updatePrefs_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/updateTickers_response.cs b/Coinigy.API/Coinigy.API.old/Responses/updateTickers_response.cs new file mode 100644 index 0000000..8fb461b --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/updateTickers_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class updateTickers_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/updateUser_response.cs b/Coinigy.API/Coinigy.API.old/Responses/updateUser_response.cs new file mode 100644 index 0000000..38e7e80 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/updateUser_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class updateUser_response : BaseResponse + { + public object data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/userInfo_response.cs b/Coinigy.API/Coinigy.API.old/Responses/userInfo_response.cs new file mode 100644 index 0000000..c5a43b1 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/userInfo_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class userInfo_response : BaseResponse + { + public UserInfo data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/userWatchList_response.cs b/Coinigy.API/Coinigy.API.old/Responses/userWatchList_response.cs new file mode 100644 index 0000000..83a04a1 --- /dev/null +++ b/Coinigy.API/Coinigy.API.old/Responses/userWatchList_response.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Coinigy.API.Responses +{ + [JsonObject(MemberSerialization = MemberSerialization.Fields)] + public class userWatchList_response : BaseResponse + { + public List data; + public List notifications; + } +} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.sln b/Coinigy.API/Coinigy.API.sln index 827b2f4..615531d 100644 --- a/Coinigy.API/Coinigy.API.sln +++ b/Coinigy.API/Coinigy.API.sln @@ -1,25 +1,25 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio 15 +VisualStudioVersion = 15.0.28124.53 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Coinigy.API", "Coinigy.API\Coinigy.API.csproj", "{3360E850-78D9-4B1A-83CB-B1F39ACAF77A}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{98781E0A-6EEE-40A6-8731-9DDBA3A1AFF0}" ProjectSection(SolutionItems) = preProject ..\README.md = ..\README.md EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Coinigy.API", "Coinigy.API\Coinigy.API.csproj", "{F3DAD3B2-D9E9-4794-86A7-550834F69F29}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3360E850-78D9-4B1A-83CB-B1F39ACAF77A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3360E850-78D9-4B1A-83CB-B1F39ACAF77A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3360E850-78D9-4B1A-83CB-B1F39ACAF77A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3360E850-78D9-4B1A-83CB-B1F39ACAF77A}.Release|Any CPU.Build.0 = Release|Any CPU + {F3DAD3B2-D9E9-4794-86A7-550834F69F29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F3DAD3B2-D9E9-4794-86A7-550834F69F29}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F3DAD3B2-D9E9-4794-86A7-550834F69F29}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F3DAD3B2-D9E9-4794-86A7-550834F69F29}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Coinigy.API/Coinigy.API/Coinigy.API.csproj b/Coinigy.API/Coinigy.API/Coinigy.API.csproj index 8836e7a..f382cf1 100644 --- a/Coinigy.API/Coinigy.API/Coinigy.API.csproj +++ b/Coinigy.API/Coinigy.API/Coinigy.API.csproj @@ -1,20 +1,17 @@  - + - 10.0 Debug AnyCPU - {3360E850-78D9-4B1A-83CB-B1F39ACAF77A} + {F3DAD3B2-D9E9-4794-86A7-550834F69F29} Library Properties Coinigy.API Coinigy.API - en-US + v4.6.2 512 - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Profile111 - v4.5 + true @@ -36,80 +33,86 @@ 4 - - - - - + + ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll + + + + + ..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll + + + ..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Primitives.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - ..\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll - True - - - ..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net45+win8+wpa81\System.Net.Http.Extensions.dll - True - - - ..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net45+win8+wpa81\System.Net.Http.Primitives.dll - True - - - + @@ -117,11 +120,4 @@ - \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API/Properties/AssemblyInfo.cs b/Coinigy.API/Coinigy.API/Properties/AssemblyInfo.cs index cf82844..6e811f7 100644 --- a/Coinigy.API/Coinigy.API/Properties/AssemblyInfo.cs +++ b/Coinigy.API/Coinigy.API/Properties/AssemblyInfo.cs @@ -1,29 +1,36 @@ using System.Reflection; -using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. - [assembly: AssemblyTitle("Coinigy.API")] -[assembly: AssemblyDescription("A portable API library to interact with Coinigy.com.")] +[assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Coinigy Inc.")] +[assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Coinigy.API")] -[assembly: AssemblyCopyright("Copyright © 2016 Coinigy Inc.")] +[assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -[assembly: NeutralResourcesLanguage("en")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f3dad3b2-d9e9-4794-86a7-550834f69f29")] // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] - -[assembly: AssemblyVersion("0.1.0.*")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Coinigy.API/Coinigy.API/packages.config b/Coinigy.API/Coinigy.API/packages.config index 9d6412f..2a65bf9 100644 --- a/Coinigy.API/Coinigy.API/packages.config +++ b/Coinigy.API/Coinigy.API/packages.config @@ -1,8 +1,7 @@  - - - - - + + + + \ No newline at end of file From 5375437f36e575b28379a2540f512fa688068d55 Mon Sep 17 00:00:00 2001 From: "scott@sandigital.tech" Date: Tue, 23 Oct 2018 07:02:09 -0700 Subject: [PATCH 2/3] Cleaned up source tree --- .../Coinigy.API.old/Coinigy.API.csproj | 104 --- Coinigy.API/Coinigy.API.old/CoinigyApi.cs | 643 ------------------ Coinigy.API/Coinigy.API.old/MarketDataType.cs | 11 - .../Properties/AssemblyInfo.cs | 29 - .../Responses/ActivityNotification.cs | 15 - .../Coinigy.API.old/Responses/AlertData.cs | 12 - .../Coinigy.API.old/Responses/AlertHistory.cs | 19 - .../Coinigy.API.old/Responses/Balance.cs | 15 - .../Responses/BalanceHistory.cs | 17 - .../Responses/BalanceHistoryList.cs | 11 - .../Coinigy.API.old/Responses/BaseResponse.cs | 11 - Coinigy.API/Coinigy.API.old/Responses/Data.cs | 17 - .../Coinigy.API.old/Responses/DataAsk.cs | 12 - .../Coinigy.API.old/Responses/DataBid.cs | 12 - .../Coinigy.API.old/Responses/DataHistory.cs | 13 - .../Coinigy.API.old/Responses/Exchange.cs | 16 - .../Responses/ExchangeAccount.cs | 20 - .../Coinigy.API.old/Responses/Market.cs | 15 - .../Coinigy.API.old/Responses/NewsItem.cs | 24 - .../Coinigy.API.old/Responses/Notification.cs | 18 - .../Coinigy.API.old/Responses/OpenAlert.cs | 19 - .../Coinigy.API.old/Responses/OpenOrder.cs | 27 - .../Coinigy.API.old/Responses/OrderHistory.cs | 27 - .../Coinigy.API.old/Responses/OrderType.cs | 12 - .../Coinigy.API.old/Responses/OrderTypes.cs | 12 - .../Coinigy.API.old/Responses/Orders.cs | 12 - .../Coinigy.API.old/Responses/PriceType.cs | 12 - .../Coinigy.API.old/Responses/Ticker.cs | 18 - .../Coinigy.API.old/Responses/UserInfo.cs | 43 -- .../Coinigy.API.old/Responses/WatchedItem.cs | 23 - .../Responses/accounts_response.cs | 12 - .../Responses/activateApiKey_response.cs | 12 - .../Responses/activateTradingKey_response.cs | 12 - .../Responses/activity_response.cs | 12 - .../Responses/addAlert_response.cs | 12 - .../Responses/addApiKey_response.cs | 12 - .../Responses/addOrder_response.cs | 12 - .../Responses/alerts_response.cs | 12 - .../Responses/balanceHistory_response.cs | 12 - .../Responses/balances_response.cs | 12 - .../Responses/cancelOrder_response.cs | 12 - .../Responses/data_response.cs | 12 - .../Responses/deleteAlert_response.cs | 12 - .../Responses/deleteApiKey_response.cs | 12 - .../Responses/exchanges_response.cs | 12 - .../Responses/markets_response.cs | 12 - .../Responses/newsFeed_response.cs | 12 - .../Responses/orderTypes_response.cs | 12 - .../Responses/orders_response.cs | 12 - .../Responses/refreshBalance_response.cs | 12 - .../Responses/ticker_response.cs | 12 - .../Responses/updatePrefs_response.cs | 12 - .../Responses/updateTickers_response.cs | 12 - .../Responses/updateUser_response.cs | 12 - .../Responses/userInfo_response.cs | 12 - .../Responses/userWatchList_response.cs | 12 - 56 files changed, 1551 deletions(-) delete mode 100644 Coinigy.API/Coinigy.API.old/Coinigy.API.csproj delete mode 100644 Coinigy.API/Coinigy.API.old/CoinigyApi.cs delete mode 100644 Coinigy.API/Coinigy.API.old/MarketDataType.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Properties/AssemblyInfo.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/ActivityNotification.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/AlertData.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/AlertHistory.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/Balance.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/BalanceHistory.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/BalanceHistoryList.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/BaseResponse.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/Data.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/DataAsk.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/DataBid.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/DataHistory.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/Exchange.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/ExchangeAccount.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/Market.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/NewsItem.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/Notification.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/OpenAlert.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/OpenOrder.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/OrderHistory.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/OrderType.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/OrderTypes.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/Orders.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/PriceType.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/Ticker.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/UserInfo.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/WatchedItem.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/accounts_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/activateApiKey_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/activateTradingKey_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/activity_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/addAlert_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/addApiKey_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/addOrder_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/alerts_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/balanceHistory_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/balances_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/cancelOrder_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/data_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/deleteAlert_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/deleteApiKey_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/exchanges_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/markets_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/newsFeed_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/orderTypes_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/orders_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/refreshBalance_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/ticker_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/updatePrefs_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/updateTickers_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/updateUser_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/userInfo_response.cs delete mode 100644 Coinigy.API/Coinigy.API.old/Responses/userWatchList_response.cs diff --git a/Coinigy.API/Coinigy.API.old/Coinigy.API.csproj b/Coinigy.API/Coinigy.API.old/Coinigy.API.csproj deleted file mode 100644 index 0b7da81..0000000 --- a/Coinigy.API/Coinigy.API.old/Coinigy.API.csproj +++ /dev/null @@ -1,104 +0,0 @@ - - - - - 14.0 - Debug - AnyCPU - {3360E850-78D9-4B1A-83CB-B1F39ACAF77A} - Library - Properties - Coinigy.API - Coinigy.API - en-US - 512 - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - - - v5.0 - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/CoinigyApi.cs b/Coinigy.API/Coinigy.API.old/CoinigyApi.cs deleted file mode 100644 index 878e8fb..0000000 --- a/Coinigy.API/Coinigy.API.old/CoinigyApi.cs +++ /dev/null @@ -1,643 +0,0 @@ -//https://lisk.io/documentation?i=lisk-docs/APIReference -//Author: Allen Byron Penner -//TODO: fix the way errors are handled in http methods - -using System; -using System.Collections.Generic; -using System.Net.Http; -using System.Threading.Tasks; -using Coinigy.API.Responses; -using Newtonsoft.Json; - -namespace Coinigy.API -{ - public class CoinigyApi - { - public CoinigyApi(string api_key, string api_secret, string serverBaseUrl = "https://api.coinigy.com/api/v1/", - string userAgent = - "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36") - { - User_Agent = userAgent; - Server_Url = serverBaseUrl; - Api_Key = api_key; - Api_Secret = api_secret; - } - - public string User_Agent { get; set; } - public string Server_Url { get; set; } - - private string Api_Key { get; } - - private string Api_Secret { get; } - - public userInfo_response UserInfo() - { - var url = "userInfo"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task UserInfoAsync() - { - var url = "userInfo"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public activity_response Activity() - { - var url = "activity"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task ActivityAsync() - { - var url = "activity"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public accounts_response Accounts() - { - var url = "accounts"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task AccountsAsync() - { - var url = "accounts"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public balances_response Balances(bool show_nils = false, string auth_ids = "") - { - var url = "balances"; - var pd = new List> - { - new KeyValuePair("show_nils", Convert.ToInt32(show_nils).ToString()), - new KeyValuePair("auth_ids", auth_ids) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task BalancesAsync(bool show_nils = false, string auth_ids = "") - { - var url = "balances"; - var pd = new List> - { - new KeyValuePair("show_nils", Convert.ToInt32(show_nils).ToString()), - new KeyValuePair("auth_ids", auth_ids) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public balanceHistory_response BalanceHistory(string date = "") - { - if (string.IsNullOrEmpty(date)) - date = DateTime.UtcNow.ToString("yyyy-MM-dd"); - var url = "balanceHistory"; - var pd = new List> - { - new KeyValuePair("date", date) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task BalanceHistoryAsync(string date = "") - { - if (string.IsNullOrEmpty(date)) - date = DateTime.UtcNow.ToString("yyyy-MM-dd"); - var url = "balanceHistory"; - var pd = new List> - { - new KeyValuePair("date", date) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public orders_response Orders() - { - var url = "orders"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task OrdersAsync() - { - var url = "orders"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public alerts_response Alerts() - { - var url = "alerts"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task AlertsAsync() - { - var url = "alerts"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public userWatchList_response UserWatchList() - { - var url = "userWatchList"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task UserWatchListAsync() - { - var url = "userWatchList"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public newsFeed_response NewsFeed() - { - var url = "newsFeed"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task NewsFeedAsync() - { - var url = "newsFeed"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public updateUser_response UpdateUser(string first_name, string last_name, string company, string phone, - string street1, string street2, string city, string state, string zip, string country) - { - var url = "updateUser"; - var pd = new List> - { - new KeyValuePair("first_name", first_name), - new KeyValuePair("last_name", last_name), - new KeyValuePair("last_name", company), - new KeyValuePair("last_name", phone), - new KeyValuePair("last_name", street1), - new KeyValuePair("last_name", street2), - new KeyValuePair("last_name", city), - new KeyValuePair("last_name", state), - new KeyValuePair("last_name", zip), - new KeyValuePair("last_name", country) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task UpdateUserAsync(string first_name, string last_name, string company, - string phone, string street1, string street2, string city, string state, string zip, string country) - { - var url = "updateUser"; - var pd = new List> - { - new KeyValuePair("first_name", first_name), - new KeyValuePair("last_name", last_name), - new KeyValuePair("last_name", company), - new KeyValuePair("last_name", phone), - new KeyValuePair("last_name", street1), - new KeyValuePair("last_name", street2), - new KeyValuePair("last_name", city), - new KeyValuePair("last_name", state), - new KeyValuePair("last_name", zip), - new KeyValuePair("last_name", country) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public updatePrefs_response UpdatePrefs(bool alert_email, bool alert_sms, bool trade_email, bool trade_sms, - bool balance_email) - { - var url = "updatePrefs"; - var pd = new List> - { - new KeyValuePair("alert_email", Convert.ToInt32(alert_email).ToString()), - new KeyValuePair("last_name", Convert.ToInt32(alert_sms).ToString()), - new KeyValuePair("last_name", Convert.ToInt32(trade_email).ToString()), - new KeyValuePair("last_name", Convert.ToInt32(trade_sms).ToString()), - new KeyValuePair("last_name", Convert.ToInt32(balance_email).ToString()) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task UpdatePrefsAsync(bool alert_email, bool alert_sms, bool trade_email, - bool trade_sms, bool balance_email) - { - var url = "updatePrefs"; - var pd = new List> - { - new KeyValuePair("alert_email", Convert.ToInt32(alert_email).ToString()), - new KeyValuePair("last_name", Convert.ToInt32(alert_sms).ToString()), - new KeyValuePair("last_name", Convert.ToInt32(trade_email).ToString()), - new KeyValuePair("last_name", Convert.ToInt32(trade_sms).ToString()), - new KeyValuePair("last_name", Convert.ToInt32(balance_email).ToString()) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public updateTickers_response UpdateTickers(string exch_mkt_ids) - { - var url = "updateTickers"; - var pd = new List> - { - new KeyValuePair("exch_mkt_ids", exch_mkt_ids) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task UpdateTickersAsync(string exch_mkt_ids) - { - var url = "updateTickers"; - var pd = new List> - { - new KeyValuePair("exch_mkt_ids", exch_mkt_ids) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public orderTypes_response OrderTypes() - { - var url = "orderTypes"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task OrderTypesAsync() - { - var url = "orderTypes"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public refreshBalance_response RefreshBalance(string auth_id) - { - var url = "refreshBalance"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task RefreshBalanceAsync(string auth_id) - { - var url = "refreshBalance"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public addAlert_response AddAlert(string exch_code, string market_name, string alert_price, - string alert_note = "") - { - var url = "addAlert"; - var pd = new List> - { - new KeyValuePair("exch_code", exch_code), - new KeyValuePair("market_name", market_name), - new KeyValuePair("alert_price", alert_price), - new KeyValuePair("alert_note", alert_note) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task AddAlertAsync(string exch_code, string market_name, string alert_price, - string alert_note = "") - { - var url = "addAlert"; - var pd = new List> - { - new KeyValuePair("exch_code", exch_code), - new KeyValuePair("market_name", market_name), - new KeyValuePair("alert_price", alert_price), - new KeyValuePair("alert_note", alert_note) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public deleteAlert_response DeleteAlert(string alert_id) - { - var url = "deleteAlert"; - var pd = new List> - { - new KeyValuePair("alert_id", alert_id) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task DeleteAlertAsync(string alert_id) - { - var url = "deleteAlert"; - var pd = new List> - { - new KeyValuePair("alert_id", alert_id) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public addApiKey_response AddApiKey(string api_key, string api_secret, string api_exch_id, string api_nickname) - { - var url = "addApiKey"; - var pd = new List> - { - new KeyValuePair("api_key", api_key), - new KeyValuePair("api_secret", api_secret), - new KeyValuePair("api_exch_id", api_exch_id), - new KeyValuePair("api_nickname", api_nickname) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task AddApiKeyAsync(string api_key, string api_secret, string api_exch_id, - string api_nickname) - { - var url = "addApiKey"; - var pd = new List> - { - new KeyValuePair("api_key", api_key), - new KeyValuePair("api_secret", api_secret), - new KeyValuePair("api_exch_id", api_exch_id), - new KeyValuePair("api_nickname", api_nickname) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public deleteApiKey_response DeleteApiKey(string auth_id) - { - var url = "deleteApiKey"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task DeleteApiKeyAsync(string auth_id) - { - var url = "deleteApiKey"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public activateApiKey_response ActivateApiKey(string auth_id, bool auth_active = true) - { - var url = "activateApiKey"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id), - new KeyValuePair("auth_active", Convert.ToInt32(auth_id).ToString()) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task ActivateApiKeyAsync(string auth_id, bool auth_active = true) - { - var url = "activateApiKey"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id), - new KeyValuePair("auth_active", Convert.ToInt32(auth_id).ToString()) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public activateTradingKey_response ActivateTradingKey(string auth_id, bool auth_trade = true) - { - var url = "activateTradingKey"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id), - new KeyValuePair("auth_trade", Convert.ToInt32(auth_id).ToString()) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task ActivateTradingKeyAsync(string auth_id, bool auth_trade = true) - { - var url = "activateTradingKey"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id), - new KeyValuePair("auth_trade", Convert.ToInt32(auth_id).ToString()) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public addOrder_response AddOrder(int auth_id, int exch_id, int mkt_id, int order_type_id, int price_type_id, - decimal limit_price, decimal order_quantity) - { - var url = "addOrder"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id.ToString()), - new KeyValuePair("exch_id", exch_id.ToString()), - new KeyValuePair("mkt_id", mkt_id.ToString()), - new KeyValuePair("order_type_id", order_type_id.ToString()), - new KeyValuePair("price_type_id", price_type_id.ToString()), - new KeyValuePair("limit_price", limit_price.ToString()), - new KeyValuePair("order_quantity", order_quantity.ToString()) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task AddOrderAsync(int auth_id, int exch_id, int mkt_id, int order_type_id, - int price_type_id, decimal limit_price, decimal order_quantity) - { - var url = "addOrder"; - var pd = new List> - { - new KeyValuePair("auth_id", auth_id.ToString()), - new KeyValuePair("exch_id", exch_id.ToString()), - new KeyValuePair("mkt_id", mkt_id.ToString()), - new KeyValuePair("order_type_id", order_type_id.ToString()), - new KeyValuePair("price_type_id", price_type_id.ToString()), - new KeyValuePair("limit_price", limit_price.ToString()), - new KeyValuePair("order_quantity", order_quantity.ToString()) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public cancelOrder_response CancelOrder(int internal_order_id) - { - var url = "cancelOrder"; - var pd = new List> - { - new KeyValuePair("internal_order_id", internal_order_id.ToString()) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task CancelOrderAsync(int internal_order_id) - { - var url = "cancelOrder"; - var pd = new List> - { - new KeyValuePair("internal_order_id", internal_order_id.ToString()) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public exchanges_response Exchanges() - { - var url = "exchanges"; - var gr = HttpPostRequest(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public async Task ExchangesAsync() - { - var url = "exchanges"; - var gr = await HttpPostRequestAsync(url, User_Agent, new List>()); - return JsonConvert.DeserializeObject(gr); - } - - public markets_response Markets(string exchange_code) - { - var url = "markets"; - var pd = new List> - { - new KeyValuePair("exchange_code", exchange_code) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task MarketsAsync(string exchange_code) - { - var url = "markets"; - var pd = new List> - { - new KeyValuePair("exchange_code", exchange_code) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public data_response Data(string exchange_code, string exchange_market, MarketDataType type) - { - var url = "data"; - var typename = Enum.GetName(typeof(MarketDataType), type); - var pd = new List> - { - new KeyValuePair("exchange_code", exchange_code), - new KeyValuePair("exchange_market", exchange_market), - new KeyValuePair("type", typename) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task DataAsync(string exchange_code, string exchange_market, MarketDataType type) - { - var url = "data"; - var typename = Enum.GetName(typeof(MarketDataType), type); - var pd = new List> - { - new KeyValuePair("exchange_code", exchange_code), - new KeyValuePair("exchange_market", exchange_market), - new KeyValuePair("type", typename) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public ticker_response Ticker(string exchange_code, string exchange_market) - { - var url = "ticker"; - var pd = new List> - { - new KeyValuePair("exchange_code", exchange_code), - new KeyValuePair("exchange_market", exchange_market) - }; - var gr = HttpPostRequest(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - public async Task TickerAsync(string exchange_code, string exchange_market) - { - var url = "ticker"; - var pd = new List> - { - new KeyValuePair("exchange_code", exchange_code), - new KeyValuePair("exchange_market", exchange_market) - }; - var gr = await HttpPostRequestAsync(url, User_Agent, pd); - return JsonConvert.DeserializeObject(gr); - } - - private string HttpPostRequest(string url, string ua, List> postdata) - { - var client = new HttpClient(); - client.DefaultRequestHeaders.Add("User-Agent", ua); - client.DefaultRequestHeaders.Add("X-API-KEY", Api_Key); - client.DefaultRequestHeaders.Add("X-API-SECRET", Api_Secret); - - var content = new FormUrlEncodedContent(postdata); - - var response = client.PostAsync(Server_Url + url, content).Result; - - return response.IsSuccessStatusCode - ? response.Content.ReadAsStringAsync().Result - : "ERROR:" + response.StatusCode + " " + response.ReasonPhrase + " | " + response.RequestMessage; - } - - private async Task HttpPostRequestAsync(string url, string ua, - List> postdata) - { - var client = new HttpClient(); - client.DefaultRequestHeaders.Add("User-Agent", ua); - client.DefaultRequestHeaders.Add("X-API-KEY", Api_Key); - client.DefaultRequestHeaders.Add("X-API-SECRET", Api_Secret); - - var content = new FormUrlEncodedContent(postdata); - - var response = await client.PostAsync(Server_Url + url, content); - - return response.IsSuccessStatusCode - ? await response.Content.ReadAsStringAsync() - : "ERROR:" + response.StatusCode + " " + response.ReasonPhrase + " | " + response.RequestMessage; - } - } -} diff --git a/Coinigy.API/Coinigy.API.old/MarketDataType.cs b/Coinigy.API/Coinigy.API.old/MarketDataType.cs deleted file mode 100644 index 25007c4..0000000 --- a/Coinigy.API/Coinigy.API.old/MarketDataType.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace Coinigy.API -{ - public enum MarketDataType - { - history, - asks, - bids, - orders, - all - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Properties/AssemblyInfo.cs b/Coinigy.API/Coinigy.API.old/Properties/AssemblyInfo.cs deleted file mode 100644 index cf82844..0000000 --- a/Coinigy.API/Coinigy.API.old/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Reflection; -using System.Resources; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("Coinigy.API")] -[assembly: AssemblyDescription("A portable API library to interact with Coinigy.com.")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Coinigy Inc.")] -[assembly: AssemblyProduct("Coinigy.API")] -[assembly: AssemblyCopyright("Copyright © 2016 Coinigy Inc.")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: NeutralResourcesLanguage("en")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] - -[assembly: AssemblyVersion("0.1.0.*")] \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/ActivityNotification.cs b/Coinigy.API/Coinigy.API.old/Responses/ActivityNotification.cs deleted file mode 100644 index e520a3a..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/ActivityNotification.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class ActivityNotification - { - public string notification_style; - public string notification_time_added; - public string notification_title_vars; - public string notification_type_message; - public string notification_type_title; - public string notification_vars; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/AlertData.cs b/Coinigy.API/Coinigy.API.old/Responses/AlertData.cs deleted file mode 100644 index a6e89a8..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/AlertData.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class AlertData - { - public List alert_history; - public List open_alerts; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/AlertHistory.cs b/Coinigy.API/Coinigy.API.old/Responses/AlertHistory.cs deleted file mode 100644 index cae1da1..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/AlertHistory.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class AlertHistory - { - public string alert_history_id; - public string alert_note; - public string alert_price; - public string display_name; - public string exch_name; - public string mkt_name; - public string @operator; - public string operator_text; - public string price; - public string timestamp; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Balance.cs b/Coinigy.API/Coinigy.API.old/Responses/Balance.cs deleted file mode 100644 index 38ca1b1..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/Balance.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class Balance - { - public string balance_amount_avail; - public string balance_amount_held; - public string balance_amount_total; - public string balance_curr_code; - public string btc_balance; - public string last_price; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/BalanceHistory.cs b/Coinigy.API/Coinigy.API.old/Responses/BalanceHistory.cs deleted file mode 100644 index cfcbe93..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/BalanceHistory.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class BalanceHistory - { - public string auth_id; - public string balance_amount_avail; - public string balance_amount_held; - public string balance_amount_total; - public string balance_curr_code; - public string balance_date; - public string btc_value; - public string timestamp; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/BalanceHistoryList.cs b/Coinigy.API/Coinigy.API.old/Responses/BalanceHistoryList.cs deleted file mode 100644 index a64c992..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/BalanceHistoryList.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class BalanceHistoryList - { - public List balance_history; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/BaseResponse.cs b/Coinigy.API/Coinigy.API.old/Responses/BaseResponse.cs deleted file mode 100644 index bf854d5..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/BaseResponse.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class BaseResponse - { - public string err_msg; - public string err_num; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Data.cs b/Coinigy.API/Coinigy.API.old/Responses/Data.cs deleted file mode 100644 index ebf9063..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/Data.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class Data - { - public List asks; - public List bids; - public string exch_code; - public List history; - public string primary_curr_code; - public string secondary_curr_code; - public string type; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/DataAsk.cs b/Coinigy.API/Coinigy.API.old/Responses/DataAsk.cs deleted file mode 100644 index 399d067..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/DataAsk.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class DataAsk - { - public string price; - public string quantity; - public string total; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/DataBid.cs b/Coinigy.API/Coinigy.API.old/Responses/DataBid.cs deleted file mode 100644 index 8a4cdb3..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/DataBid.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class DataBid - { - public string price; - public string quantity; - public string total; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/DataHistory.cs b/Coinigy.API/Coinigy.API.old/Responses/DataHistory.cs deleted file mode 100644 index 47640f4..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/DataHistory.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class DataHistory - { - public string price; - public string quantity; - public string time_local; - public string type; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Exchange.cs b/Coinigy.API/Coinigy.API.old/Responses/Exchange.cs deleted file mode 100644 index 5168cfd..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/Exchange.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class Exchange - { - public string exch_balance_enabled; - public string exch_code; - public string exch_fee; - public string exch_id; - public string exch_name; - public string exch_trade_enabled; - public string exch_url; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/ExchangeAccount.cs b/Coinigy.API/Coinigy.API.old/Responses/ExchangeAccount.cs deleted file mode 100644 index 69aac44..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/ExchangeAccount.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class ExchangeAccount - { - public string auth_active; - public string auth_id; - public string auth_key; - public string auth_nickname; - public string auth_optional1; - public string auth_secret; - public string auth_trade; - public string auth_updated; - public string exch_id; - public string exch_name; - public string exch_trade_enabled; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Market.cs b/Coinigy.API/Coinigy.API.old/Responses/Market.cs deleted file mode 100644 index ad45190..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/Market.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class Market - { - public string exch_code; - public string exch_id; - public string exch_name; - public string exchmkt_id; - public string mkt_id; - public string mkt_name; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/NewsItem.cs b/Coinigy.API/Coinigy.API.old/Responses/NewsItem.cs deleted file mode 100644 index 78c441d..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/NewsItem.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class NewsItem - { - public string date_field; - public string feed_description; - public string feed_enabled; - public string feed_id; - public string feed_image; - public string feed_name; - public string feed_url; - public string id; - public string pubDate; - public string published_date; - public string timestamp; - public string title; - public string title_field; - public string url; - public string url_field; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Notification.cs b/Coinigy.API/Coinigy.API.old/Responses/Notification.cs deleted file mode 100644 index fe5a501..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/Notification.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class Notification - { - public string notification_id; - public string notification_pinned; - public string notification_sound; - public string notification_sound_id; - public string notification_style; - public string notification_title_vars; - public string notification_type_message; - public string notification_type_title; - public string notification_vars; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OpenAlert.cs b/Coinigy.API/Coinigy.API.old/Responses/OpenAlert.cs deleted file mode 100644 index 01a7159..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/OpenAlert.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class OpenAlert - { - public string alert_added; - public string alert_id; - public string alert_note; - public string display_name; - public string exch_code; - public string exch_name; - public string mkt_name; - public string @operator; - public string operator_text; - public string price; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OpenOrder.cs b/Coinigy.API/Coinigy.API.old/Responses/OpenOrder.cs deleted file mode 100644 index a57655b..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/OpenOrder.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class OpenOrder - { - public string auth_id; - public string auth_nickname; - public string display_name; - public string exch_code; - public string exch_name; - public string foreign_order_id; - public string limit_price; - public string mkt_name; - public string @operator; - public string order_id; - public string order_price_type; - public string order_status; - public string order_time; - public string order_type; - public string price_type_id; - public string quantity; - public string quantity_remaining; - public string stop_price; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OrderHistory.cs b/Coinigy.API/Coinigy.API.old/Responses/OrderHistory.cs deleted file mode 100644 index 590f908..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/OrderHistory.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class OrderHistory - { - public string auth_id; - public string auth_nickname; - public string display_name; - public string exch_code; - public string exch_id; - public string exch_name; - public string executed_price; - public string last_updated; - public string limit_price; - public string mkt_name; - public string order_id; - public string order_price_type; - public string order_status; - public string order_time; - public string order_type; - public string quantity; - public string quantity_remaining; - public string unixtime; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OrderType.cs b/Coinigy.API/Coinigy.API.old/Responses/OrderType.cs deleted file mode 100644 index ca5e365..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/OrderType.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class OrderType - { - public string name; - public string order; - public string order_type_id; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/OrderTypes.cs b/Coinigy.API/Coinigy.API.old/Responses/OrderTypes.cs deleted file mode 100644 index e113a7d..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/OrderTypes.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class OrderTypes - { - public List order_types; - public List price_types; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Orders.cs b/Coinigy.API/Coinigy.API.old/Responses/Orders.cs deleted file mode 100644 index ea40edc..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/Orders.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class Orders - { - public List open_orders; - public List order_history; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/PriceType.cs b/Coinigy.API/Coinigy.API.old/Responses/PriceType.cs deleted file mode 100644 index d5ecb29..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/PriceType.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class PriceType - { - public string name; - public string order; - public string price_type_id; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/Ticker.cs b/Coinigy.API/Coinigy.API.old/Responses/Ticker.cs deleted file mode 100644 index 62d0080..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/Ticker.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class Ticker - { - public string ask; - public string bid; - public string current_volume; - public string exchange; - public string high_trade; - public string last_trade; - public string low_trade; - public string market; - public string timestamp; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/UserInfo.cs b/Coinigy.API/Coinigy.API.old/Responses/UserInfo.cs deleted file mode 100644 index e8bcf8d..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/UserInfo.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class UserInfo - { - public string active; - public string chat_enabled; - public string chat_nick; - public string city; - public string company; - public string country; - public string created_on; - public string custom_ticker; - public string email; - public string first_name; - public string last_active; - public string last_login; - public string last_name; - public string newsletter; - public string phone; - public string pref_alert_email; - public string pref_alert_mobile; - public string pref_alert_sms; - public bool pref_app_device_id; - public string pref_balance_email; - public string pref_referral_code; - public string pref_subscription_expires; - public string pref_trade_email; - public string pref_trade_mobile; - public string pref_trade_sms; - public string referral_balance; - public string state; - public string street1; - public string street2; - public string subscription_status; - public string ticker_enabled; - public string ticker_indicator_time_type; - public string two_factor; - public string zip; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/WatchedItem.cs b/Coinigy.API/Coinigy.API.old/Responses/WatchedItem.cs deleted file mode 100644 index 3b59da4..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/WatchedItem.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class WatchedItem - { - public string btc_volume; - public string current_volume; - public string exch_code; - public string exch_name; - public string exchmkt_id; - public string fiat_market; - public string high_trade; - public string last_price; - public string low_trade; - public string mkt_name; - public string prev_price; - public string primary_currency_name; - public string secondary_currency_name; - public string server_time; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/accounts_response.cs b/Coinigy.API/Coinigy.API.old/Responses/accounts_response.cs deleted file mode 100644 index 5fefff3..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/accounts_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class accounts_response : BaseResponse - { - public List data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/activateApiKey_response.cs b/Coinigy.API/Coinigy.API.old/Responses/activateApiKey_response.cs deleted file mode 100644 index e0d5593..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/activateApiKey_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class activateApiKey_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/activateTradingKey_response.cs b/Coinigy.API/Coinigy.API.old/Responses/activateTradingKey_response.cs deleted file mode 100644 index 0c18fb3..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/activateTradingKey_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class activateTradingKey_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/activity_response.cs b/Coinigy.API/Coinigy.API.old/Responses/activity_response.cs deleted file mode 100644 index a77c264..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/activity_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class activity_response : BaseResponse - { - public List data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/addAlert_response.cs b/Coinigy.API/Coinigy.API.old/Responses/addAlert_response.cs deleted file mode 100644 index ad6cf44..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/addAlert_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class addAlert_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/addApiKey_response.cs b/Coinigy.API/Coinigy.API.old/Responses/addApiKey_response.cs deleted file mode 100644 index 94887ab..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/addApiKey_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class addApiKey_response : BaseResponse - { - public long data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/addOrder_response.cs b/Coinigy.API/Coinigy.API.old/Responses/addOrder_response.cs deleted file mode 100644 index 51e055c..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/addOrder_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class addOrder_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/alerts_response.cs b/Coinigy.API/Coinigy.API.old/Responses/alerts_response.cs deleted file mode 100644 index 4648aa2..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/alerts_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class alerts_response : BaseResponse - { - public AlertData data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/balanceHistory_response.cs b/Coinigy.API/Coinigy.API.old/Responses/balanceHistory_response.cs deleted file mode 100644 index 12235b5..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/balanceHistory_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class balanceHistory_response : BaseResponse - { - public BalanceHistoryList data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/balances_response.cs b/Coinigy.API/Coinigy.API.old/Responses/balances_response.cs deleted file mode 100644 index f033833..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/balances_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class balances_response - { - public List data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/cancelOrder_response.cs b/Coinigy.API/Coinigy.API.old/Responses/cancelOrder_response.cs deleted file mode 100644 index 5834803..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/cancelOrder_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class cancelOrder_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/data_response.cs b/Coinigy.API/Coinigy.API.old/Responses/data_response.cs deleted file mode 100644 index 25ba188..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/data_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class data_response : BaseResponse - { - public Data data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/deleteAlert_response.cs b/Coinigy.API/Coinigy.API.old/Responses/deleteAlert_response.cs deleted file mode 100644 index d681092..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/deleteAlert_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class deleteAlert_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/deleteApiKey_response.cs b/Coinigy.API/Coinigy.API.old/Responses/deleteApiKey_response.cs deleted file mode 100644 index 8e71f48..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/deleteApiKey_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class deleteApiKey_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/exchanges_response.cs b/Coinigy.API/Coinigy.API.old/Responses/exchanges_response.cs deleted file mode 100644 index 65fba1b..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/exchanges_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class exchanges_response : BaseResponse - { - public List data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/markets_response.cs b/Coinigy.API/Coinigy.API.old/Responses/markets_response.cs deleted file mode 100644 index 6b39169..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/markets_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class markets_response : BaseResponse - { - public List data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/newsFeed_response.cs b/Coinigy.API/Coinigy.API.old/Responses/newsFeed_response.cs deleted file mode 100644 index c4df0e6..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/newsFeed_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class newsFeed_response : BaseResponse - { - public List data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/orderTypes_response.cs b/Coinigy.API/Coinigy.API.old/Responses/orderTypes_response.cs deleted file mode 100644 index 9926caa..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/orderTypes_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class orderTypes_response : BaseResponse - { - public OrderTypes data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/orders_response.cs b/Coinigy.API/Coinigy.API.old/Responses/orders_response.cs deleted file mode 100644 index 1ccf9c8..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/orders_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class orders_response : BaseResponse - { - public Orders data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/refreshBalance_response.cs b/Coinigy.API/Coinigy.API.old/Responses/refreshBalance_response.cs deleted file mode 100644 index b46480b..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/refreshBalance_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class refreshBalance_response : BaseResponse - { - public List data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/ticker_response.cs b/Coinigy.API/Coinigy.API.old/Responses/ticker_response.cs deleted file mode 100644 index 21de93d..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/ticker_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class ticker_response : BaseResponse - { - public List data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/updatePrefs_response.cs b/Coinigy.API/Coinigy.API.old/Responses/updatePrefs_response.cs deleted file mode 100644 index 98938b0..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/updatePrefs_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class updatePrefs_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/updateTickers_response.cs b/Coinigy.API/Coinigy.API.old/Responses/updateTickers_response.cs deleted file mode 100644 index 8fb461b..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/updateTickers_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class updateTickers_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/updateUser_response.cs b/Coinigy.API/Coinigy.API.old/Responses/updateUser_response.cs deleted file mode 100644 index 38e7e80..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/updateUser_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class updateUser_response : BaseResponse - { - public object data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/userInfo_response.cs b/Coinigy.API/Coinigy.API.old/Responses/userInfo_response.cs deleted file mode 100644 index c5a43b1..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/userInfo_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class userInfo_response : BaseResponse - { - public UserInfo data; - public List notifications; - } -} \ No newline at end of file diff --git a/Coinigy.API/Coinigy.API.old/Responses/userWatchList_response.cs b/Coinigy.API/Coinigy.API.old/Responses/userWatchList_response.cs deleted file mode 100644 index 83a04a1..0000000 --- a/Coinigy.API/Coinigy.API.old/Responses/userWatchList_response.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Coinigy.API.Responses -{ - [JsonObject(MemberSerialization = MemberSerialization.Fields)] - public class userWatchList_response : BaseResponse - { - public List data; - public List notifications; - } -} \ No newline at end of file From 762c5fd8f826a78855264bc6745da5343f8dcd7a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Oct 2022 03:48:36 +0000 Subject: [PATCH 3/3] Bump Newtonsoft.Json from 11.0.2 to 13.0.1 in /Coinigy.API/Coinigy.API Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 11.0.2 to 13.0.1. - [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases) - [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/11.0.2...13.0.1) --- updated-dependencies: - dependency-name: Newtonsoft.Json dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Coinigy.API/Coinigy.API/packages.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Coinigy.API/Coinigy.API/packages.config b/Coinigy.API/Coinigy.API/packages.config index 2a65bf9..465e267 100644 --- a/Coinigy.API/Coinigy.API/packages.config +++ b/Coinigy.API/Coinigy.API/packages.config @@ -3,5 +3,5 @@ - + \ No newline at end of file