{"action":"opened","issue":{"url":"https://api.github.com/repos/BTCTrader/broker-api-csharp/issues/1","repository_url":"https://api.github.com/repos/BTCTrader/broker-api-csharp","labels_url":"https://api.github.com/repos/BTCTrader/broker-api-csharp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/BTCTrader/broker-api-csharp/issues/1/comments","events_url":"https://api.github.com/repos/BTCTrader/broker-api-csharp/issues/1/events","html_url":"https://github.com/BTCTrader/broker-api-csharp/issues/1","id":161680049,"number":1,"title":"Alış/satış emri - Buy/sell orders","user":{"login":"mk148a","id":7630189,"avatar_url":"https://avatars.githubusercontent.com/u/7630189?v=3","gravatar_id":"","url":"https://api.github.com/users/mk148a","html_url":"https://github.com/mk148a","followers_url":"https://api.github.com/users/mk148a/followers","following_url":"https://api.github.com/users/mk148a/following{/other_user}","gists_url":"https://api.github.com/users/mk148a/gists{/gist_id}","starred_url":"https://api.github.com/users/mk148a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mk148a/subscriptions","organizations_url":"https://api.github.com/users/mk148a/orgs","repos_url":"https://api.github.com/users/mk148a/repos","events_url":"https://api.github.com/users/mk148a/events{/privacy}","received_events_url":"https://api.github.com/users/mk148a/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-22T13:17:43Z","updated_at":"2016-06-22T13:17:43Z","closed_at":null,"body":"Merhaba ben c# ortamında alış satış emri göndermek istiyorum. Apinin örnek uygulamasını inceledim ve şöyle bir kodlama yaptım:\r\n\r\n//satış için\r\nvar order = new Order\r\n{\r\nPrice = (decimal)beklenenbtcfiyatı,//mesela 2100\r\nAmount = accountBalance.BitcoinBalance,\r\nType = Order.Ask,\r\nIsMarketOrder = 0 //bunu 1 yapınca kötü fiyattan sattı ama çalıştı\r\n};\r\nif (x.SubmitOrder(ref order))\r\n{\r\nemiridtxt.Text = \"Emir girildi,Id: \" + order.Id + \"emir:\" + order.Price + \"tl olunca\" + order.Amount + \"btc'yi sat\";\r\n}\r\n//alış için\r\nvar order = new Order\r\n{\r\nPrice = (decimal)beklenenbtcfiyatı, // mesela 2050\r\n\r\nAmount = accountBalance.MoneyBalance,\r\nType = Order.Bid,\r\nIsMarketOrder = 0\r\n};\r\n\r\n                        if (x.SubmitOrder(ref order))\r\n                        {\r\n                            emiridtxt.Text = \"Emir girildi,Id: \" + order.Id + \"emir:\" + order.Price + \"tl olunca\" + order.Amount + \"btc al\";\r\n                        }\r\n\r\nkodlar bunlar ama ismarketorder=1 yapmadığım sürece çalışmıyor emir girmiyor, bana yardımcı olabilirseniz sevinirim.\r\n\r\nFor English\r\nHi i want to btcturk.com buy/sell order on c# . I'm looking for api sample application. And i'm write this code:\r\n\r\n//for selling\r\nvar order = new Order\r\n{\r\nPrice = (decimal)hopebtcprice,//for ex 2100\r\nAmount = accountBalance.BitcoinBalance,\r\nType = Order.Ask,\r\nIsMarketOrder = 0 //i try this =1 its work but bad price selling, default=0 but not work- not create order\r\n};\r\nif (x.SubmitOrder(ref order))\r\n{\r\ntextbox1.Text = \"Order is create,Id: \" + order.Id + \"order:\" + order.Price + \"tl \" + order.Amount + \"sell btc\";\r\n}\r\n//for buying\r\nvar order = new Order\r\n{\r\nPrice = (decimal)hopebtcprice, // for example 2050\r\n\r\nAmount = accountBalance.MoneyBalance,\r\nType = Order.Bid,\r\nIsMarketOrder = 0\r\n};\r\n\r\n                        if (x.SubmitOrder(ref order))\r\n                        {\r\n                            textbox1.Text = \"order create,Id: \" + order.Id + \"order:\" + order.Price + \"tl\" + order.Amount + \"buy btc\";\r\n                        }\r\n\r\nits my codes, but if i change \"ismarketorder=1\" its work, else not work not create order. Please help me."}}
{"actor":{"display_login":"mk148a"}}