static void Main(string[] args) { string APPID = ""; string APIKey = ""; Hall9001 objHall9001 = new Hall9001("https://profitfy.trade/", APPID, APIKey); bool Sucess; //Retorna os pares negociados na Profitfy var Markets = objHall9001.Markets(out Sucess); //Cria Ordem de Compra no par BRL-BTC var NewBuyOrder = objHall9001.CreateOrderBuy("BRL", "BTC", 1m, 10m, out Sucess); //Retorna Lista de Ordens de compra //Informar o numero da ordem no primeiro parâmetro //Caso o parâmetro = NULL retorna todas as ordens de compra do usuário var ListBuyOrders = objHall9001.GetOrderBuy(null, out Sucess); //Cancela Ordens de compra //Informar o numero da ordem no primeiro parâmetro //Caso o parâmetro = NULL cancela todas as ordens de compra do usuário var DeleteBuyOrders = objHall9001.DeleteOrderBuy(null, out Sucess); Console.ReadLine(); }
public ActionResult <IEnumerable <string> > Get() { string APPID = "8415c4fb-f7cd-471d-ac73-5ffbb586db7f"; string APIKey = "tSQLNweF9i8UDEg/+/J8IvI+YpM8bPirEC0AhtAqzbE="; bool Sucess; Hall9001 objHall9001 = new Hall9001("https://profitfy.trade/", APPID, APIKey); //Retorna os pares negociados na Profitfy List <Markets> Markets = objHall9001.Markets(out Sucess); return(new string[] { "response", Markets[0].coinCodeFrom }); }
public ActionResult <String> Post([FromBody] DoacaoModel value) { string APPID = "8415c4fb-f7cd-471d-ac73-5ffbb586db7f"; string APIKey = "tSQLNweF9i8UDEg/+/J8IvI+YpM8bPirEC0AhtAqzbE="; bool Sucess; Hall9001 objHall9001 = new Hall9001("https://bootcamp.profitfy.trade/", APPID, APIKey); //Retorna os pares negociados na Profitfy List <Markets> Markets = objHall9001.Markets(out Sucess); return("0x9a138cfa1ccff75d03140c51af9780d6233292b8"); //return "1"; }