Git Product home page Git Product logo

kaesen's People

Contributors

him0 avatar tetsuo-jp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kaesen's Issues

オーダの検証が出来ていない

Coincheck の場合,0.05 BTC 以下のオーダに対してエラーを返してくる.

問題

エラーが帰ってくることが分かっているリクエストを送ってしまうと,無駄な待ち時間と処理が発生する.

どうするか

リクエストを送る前に検証して,妥当であればリクエストを送信する.

TODO

  • 各取引所のオーダの検証についてまとめる.
  • 検証の機構を実装する.

キーの取り扱い、環境変数にするのはおせっかい

キーの取り扱い、環境変数にするのはおせっかいでないかという議論がしたいです。

クライアント初期化するときに必要に応じて、入力してもらうのほうが利便性が高い気がしてきました。

Zaifのnonceの仕様直しているときに、思いました。

nonceの生成を一般的なものにして全部統一する?

WHAT

nonceの生成を一般的なものにして全部統一する

WHY

  • 現在の仕様では,定期的にAPI KEYを更新しなければならない
    • OSSとして公開するライブラリとしてよろしくない
    • 好きな仕様がしたい場合は,モンキーパッチ推奨ということで良さそう

Fat Arrow 使っているけど Symbol の方が倍ぐらい早いっぽい

チリツモなので、置き換える

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.