Sha256: 016e8e36a558d7c1d0e25cfda634c12ed393396fde868b14419bb7ed781099b5

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

module BitflyerApi::Methods::Private
  module AccountStatement
    def my_addresses
      res = conn.get("/v1/me/getaddresses")
      res.body
    end

    def my_coin_ins(count: 100, before: nil, after: nil)
      query = prepare_query(
        count: count,
        before: before,
        after: after
      )

      res = conn.get("/v1/me/getcoinins", query)
      res.body
    end

    def my_coin_outs(count: 100, before: nil, after: nil)
      query = prepare_query(
        count: count,
        before: before,
        after: after
      )

      res = conn.get("/v1/me/getcoinouts", query)
      res.body
    end

    def my_deposits(count: 100, before: nil, after: nil)
      query = prepare_query(
        count: count,
        before: before,
        after: after
      )

      res = conn.get("/v1/me/getdeposits", query)
      res.body
    end

    def my_withdrawals(count: 100, before: nil, after: nil)
      query = prepare_query(
        count: count,
        before: before,
        after: after
      )

      res = conn.get("/v1/me/getwithdrawals", query)
      res.body
    end

    def my_bank_accounts(count: 100, before: nil, after: nil)
      query = prepare_query(
        count: count,
        before: before,
        after: after
      )

      res = conn.get("/v1/me/getbankaccounts", query)
      res.body
    end

    # TODO
    # def withdraw
    # end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitflyer_api-0.1.0 lib/bitflyer_api/methods/private/account_statement.rb