Search content
Sort by

Showing 11 of 11 results by idler
Post
Topic
Board Trading Discussion
Re: goxtool bot: portfolio rebalancing
by
idler
on 04/06/2013, 17:08:10 UTC
I have put about 1300 dollar to try this bot in the first of May, set the DISTANCT to 3%.

After have a trial of a month. I actually lost ~1 dollar USD (kept amount of btc equal to initial), of course after pay some fee to mtgox, so turn out no luck.

Then I've sightly modified to be adjustable ratio, I've set 80/20 btc/fiat and tested a week.
Still 1300 dollar, 3% distance and then have a better result, earned ~0.6 USD (again, kept amount of BTC equal to initial), annualized return would be 2.5%.

Earning is so little mainly because there are too few of pump and dump, but enhance the transaction volume are the key of success. I seldom check this post so I just know the cold wallet idea, I love it so much and will have a try with my 80/20.

Thanks for prof7bit again.

https://gist.github.com/idler921/5707557
Post
Topic
Board Altcoin Discussion
Re: Ripple Giveaway!
by
idler
on 16/05/2013, 19:28:31 UTC
r3SFynsQUH8AtF7aLNdRnmgcRkPwXKepmF
Post
Topic
Board Altcoin Discussion
Re: [Giveaway] 100 Yacoins :)
by
idler
on 09/05/2013, 03:54:59 UTC
I'm feeling lucky ! Grin
Post
Topic
Board Altcoin Discussion
Re: [Giveaway] 100 Yacoins :)
by
idler
on 09/05/2013, 03:50:17 UTC
Y8uSL27tH5CDhF76PsxWjKGypwFPfmp5Qv
Post
Topic
Board Altcoin Discussion
Re: feathercoin pool(100M+)
by
idler
on 04/05/2013, 17:12:29 UTC
how come the pool automatically added 6rAFm9Hx9KD8aL54cKBZyCeXv7dtCVEyZg, this is not my address !!  Angry
Post
Topic
Board Gambling
Re: This is the magnificent bitcoin gem
by
idler
on 01/05/2013, 21:08:39 UTC
No time stamp for previous transaction? 40 owner loss because of volume too small ?
Post
Topic
Board Beginners & Help
Re: AVALON ASIC
by
idler
on 21/04/2013, 19:12:54 UTC
Any idea when will new batch preorder ? is still cost 1300 $ ?
75 BTC not incl shipping
Post
Topic
Board Beginners & Help
Topic OP
DIY Coinotron JSON API
by
idler
on 21/04/2013, 19:08:57 UTC
I think coinotron is a good LTC Pool, but it doesn't provide JSON API to allow monitoring or logging, so I've made my own one, let's share it for you. Hope all would help.

The script is written in ruby and designed to run in cgi-bin of an web server.

The main purpose is to raise the awareness of the importance of the read only API. If the developer of coinotron released these extremely simple JSON API, this script would be useless. Thank you!

Code:
#!/usr/bin/env ruby

username = "xxxxxxxx"
password = "xxxxxxxxx"

puts "Content-type: text/text\n\n" unless ENV["HTTP_HOST"].nil?

require 'httpclient'
clnt = HTTPClient.new
clnt.set_cookie_store("cookie.dat")

r = clnt.get "https://coinotron.com/coinotron/AccountServlet?action=home"
while r.header.status_code == 302 do
  r = clnt.get r.header["Location"][0]
end
clnt.post "https://coinotron.com/coinotron/AccountServlet?action=logon", {"name" => username, "password" => password, "Logon" => "Logon"}

html = clnt.get_content "https://coinotron.com/coinotron/AccountServlet?action=myaccount"

require 'nokogiri'
doc = Nokogiri::HTML.parse html

h = Hash.new
h["worker"] = Hash.new

ltc_cr = ltc_ucf = ltc_c = 0

doc.css("input").each do |i|
  ltc_cr  = i["value"].to_f if i["name"] == "CurrentRoundRewardsLTC"
  ltc_ucf = i["value"].to_f if i["name"] == "UnconfirmedRewardsLTC"
  ltc_c   = i["value"].to_f if i["name"] == "ConfirmedRewardsLTC"
end

ltc_ct = ltc_cr + ltc_ucf + ltc_c

h["CurrentRoundRewardsLTC"] = ltc_cr
h["UnconfirmedRewardsLTC"] = ltc_ucf
h["ConfirmedRewardsLTC"] = ltc_c
h["TotalRewordsLTC"] = ltc_ct

doc.css("form").each do |f|

  if f["action"] == "/coinotron/AccountServlet?action=changeworkercoin"
    worker_name = f.xpath("input[@name=\"workername\"]").first["value"]
    h["worker"][worker_name] = Hash.new if h[worker_name].nil?
    coin = ""
    f.css("option").each do |o|
      unless o["selected"].nil?
        coin = o.text ; break
      end
    end
    h["worker"][worker_name]["coin"] = coin
  end

  if f["action"] == "/coinotron/AccountServlet?action=changeworkerrewardtype"
    worker_name = f.xpath("input[@name=\"workername\"]").first["value"]
    h["worker"][worker_name] = Hash.new if h[worker_name].nil?
    workerrewardtype = ""
    f.css("option").each do |o|
      unless o["selected"].nil?
        workerrewardtype = o.text ; break
      end
    end
    h["worker"][worker_name]["workerrewardtype"] = workerrewardtype
  end

end


doc.css("tr").each do |row|
  ct = 0
  worker_name = khash = ""
  row.children.each do |c|
    worker_name = c.text.strip if c.name == "td"  and  ct == 2
    khash = c.text.strip if c.name == "td" and ct == 6
    ct +=1
  end
  next if h["worker"][worker_name].nil?
  h["worker"][worker_name]["khash"] = khash
end

#puts h

require 'json'
puts h.to_json




Then output looks like

Code:
{"CurrentRoundRewardsLTC"=>0.0, "UnconfirmedRewardsLTC"=>0.0, "ConfirmedRewardsLTC"=>2.91905758, "TotalRewordsLTC"=>2.91905758, "idler921.gpu"=>{"coin"=>"LTC", "workerrewardtype"=>"Round based pay per share", "khash"=>"152.2 KH/s"}, "idler921.cpu"=>{"coin"=>"LTC", "workerrewardtype"=>"Pay per share", "khash"=>"45.0 KH/s"}}
Post
Topic
Board 中文 (Chinese)
Re: 唯一中文(人民币)比特币交易网站:https://btcchina.com
by
idler
on 08/06/2012, 18:38:04 UTC
我也有用…
Post
Topic
Board 中文 (Chinese)
Re: 为什么我不能在别的版块发帖
by
idler
on 08/06/2012, 18:36:12 UTC
要發 5 貼,逗留 4 小時…
Post
Topic
Board Beginners & Help
Re: Introduce yourself :)
by
idler
on 08/06/2012, 17:58:41 UTC
Hi all!

I'm 27 years old man from Hong Kong. I'm a wine salesman.