him0 / kaesen Goto Github PK
View Code? Open in Web Editor NEWkaesen(替銭)is a module for exchanging Japanese yen and Bitcoin and collecting market information.
License: MIT License
kaesen(替銭)is a module for exchanging Japanese yen and Bitcoin and collecting market information.
License: MIT License
spec がコケていたので気がついた
v1 では、BTC/JPY も取れなくなっている模様
修正が必要
参考
https://www.lakebtc.com/s/api_v2?locale=en
https://api.lakebtc.com/api_v2/ticker
小数点以下も識別されるようになったらしい
co.jp から com になるらしい
Coincheck の場合,0.05 BTC 以下のオーダに対してエラーを返してくる.
エラーが帰ってくることが分かっているリクエストを送ってしまうと,無駄な待ち時間と処理が発生する.
リクエストを送る前に検証して,妥当であればリクエストを送信する.
注文のIDを指定して指数注文のキャンセルができるようにするための前段階
キャンセルするためには,現在のオーダー一覧が欲しいから
機能をissueで管理しながら実装して行きたいと思います.
取引所もどこにあるのか不明
もう消す方針でいいんじゃないかな?
キーの取り扱い、環境変数にするのはおせっかいでないかという議論がしたいです。
クライアント初期化するときに必要に応じて、入力してもらうのほうが利便性が高い気がしてきました。
Zaifのnonceの仕様直しているときに、思いました。
nonceの生成を一般的なものにして全部統一する
チリツモなので、置き換える
require 'benchmark'
a = {
"a" => 1,
"b" => 2,
}
b = {
a: 1,
b: 2,
}
Benchmark.bm 10 do |r|
r.report "Fat Arrow" do
10_000_000.times do
a["a"]
end
end
r.report "Symbol" do
10_000_000.times do
b[:a]
end
end
end
user system total real
Fat Arrow 0.850000 0.010000 0.860000 ( 0.921902)
Symbol 0.560000 0.000000 0.560000 ( 0.564189)
高速化プロジェクト
破壊的でもよい文字列の連結は、置き換えを行う。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.