static void Main(string[] args) { string data = "{\"ticks\":\"R_10\"}"; var bws = new DerivWS(); bws.Connect().Wait(); bws.SendRequest(data).Wait(); bws.StartListen().GetAwaiter(); Console.ReadLine(); }
static void Main(string[] args) { string data = "{ \"proposal\": 1, \"amount\": 100, \"barrier\": \"+0.1\", \"basis\": \"payout\", \"contract_type\": \"CALL\", \"currency\": \"USD\", \"duration\": 60, \"duration_unit\": \"s\", \"symbol\": \"R_100\" , \"subscribe\" : 1}"; var bws = new DerivWS(); bws.Connect().Wait(); bws.SendRequest(data).Wait(); bws.StartListen().GetAwaiter(); Console.ReadLine(); }
static void Main(string[] args) { var bws = new DerivWS(); bws.Connect().Wait(); string data = "{ \"authorize\": \"" + token + "\"}"; bws.SendRequest(data).Wait(); bws.StartListen().Wait(); }