ruby_bitbankcc 0.1.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6baf2878dabf6542abcc44e916e02e75ed8467ac22ff901db933ca4735eff4f9
4
- data.tar.gz: 012d545d48de257cf012988d73a9ef422fceda6ba12b324e03937c22ad71bca4
3
+ metadata.gz: afb38f03e661e2ab3ddbce163a78268f15d72a46ab3c28bf628564eac47f7641
4
+ data.tar.gz: a3187a966d38b5f19d3e1fa811e4b22575525e4093bc1ea6f496e596aefed72d
5
5
  SHA512:
6
- metadata.gz: 13174e7c7493d2f62a9e3807685c13f1fb6962bb269a23a9ec03047c04635bdda839aa46104209a05e74d68a3d01cab693250984a535511499a45ada1e0ad7fa
7
- data.tar.gz: 4ef526834b8fd227dee92a6e77c64b5929048439c64939224fed604112a734bb22c0d96a4d20f972a70344a3f3286bab3e25920d07382b4d0d9013e0a5ee700a
6
+ metadata.gz: 3fd3224589d094479219a861e192fcb9ddaf4f22c99d57f89455340e0be5be56e9ff17db2cf43e1ccee4f6edc7f3f5fd3eb909ffa3dc29e08f8396c605d187d1
7
+ data.tar.gz: dab92b85c7b6ee94f25beb0575b9741ff9c7cd6e99f88c3f21f02944995a49dd3437c2a219a08677d009401e884008f397f4e71662505129836587c8d143c585
data/README.md CHANGED
@@ -29,6 +29,7 @@ bbcc.read_transactions('btc_jpy')
29
29
  bbcc.read_ticker('btc_jpy')
30
30
  bbcc.read_order_books('btc_jpy')
31
31
  bbcc.read_balance()
32
+ bbcc.read_circuit_break_info('btc_jpy')
32
33
  bbcc.read_active_orders('btc_jpy')
33
34
  # you can omit last post_only (omit means false)
34
35
  bbcc.create_order('btc_jpy', "0.001", 130000, 'buy', 'limit', false)
@@ -36,7 +37,9 @@ bbcc.create_order('btc_jpy', "0.001", 130000, 'buy', 'limit', false)
36
37
  bbcc.create_order('btc_jpy', "0.001", 130000, 'buy', 'stop_limit', false, 140000)
37
38
  bbcc.cancel_order('btc_jpy', order_id)
38
39
  bbcc.read_trade_history('btc_jpy')
40
+ bbcc.read_deposit_history('btc')
39
41
  bbcc.read_withdrawal_account('btc')
40
42
  bbcc.request_withdrawal('btc', 'ACCOUNT UUID', '0.001', 'OTP TOKEN', 'SMS TOKEN')
43
+ bbcc.read_withdrawal_history('btc')
41
44
  JSON.parse(response.body)
42
45
  ```
@@ -83,6 +83,20 @@ class Bitbankcc
83
83
  request_for_get(path, nonce, params)
84
84
  end
85
85
 
86
+ def read_deposit_history(asset, count = nil, since = nil, _end = nil, order = nil)
87
+ path = "/v1/user/deposit_history"
88
+ nonce = Time.now.to_i.to_s
89
+ params = {
90
+ asset: asset,
91
+ count: count,
92
+ since: since,
93
+ end: _end,
94
+ order: order
95
+ }.compact
96
+
97
+ request_for_get(path, nonce, params)
98
+ end
99
+
86
100
  def read_withdrawal_account(asset)
87
101
  path = "/v1/user/withdrawal_account"
88
102
  nonce = Time.now.to_i.to_s
@@ -106,6 +120,20 @@ class Bitbankcc
106
120
  request_for_post(path, nonce, body)
107
121
  end
108
122
 
123
+ def read_withdrawal_history(asset, count = nil, since = nil, _end = nil, order = nil)
124
+ path = "/v1/user/withdrawal_history"
125
+ nonce = Time.now.to_i.to_s
126
+ params = {
127
+ asset: asset,
128
+ count: count,
129
+ since: since,
130
+ end: _end,
131
+ order: order
132
+ }.compact
133
+
134
+ request_for_get(path, nonce, params)
135
+ end
136
+
109
137
  def read_ticker(pair)
110
138
  RestClient.get @@base_public_url + "/#{pair}/ticker"
111
139
  end
@@ -118,6 +146,10 @@ class Bitbankcc
118
146
  RestClient.get @@base_public_url + "/#{pair}/transactions" + (date.empty? ? '' : '/' + date)
119
147
  end
120
148
 
149
+ def read_circuit_break_info(pair)
150
+ RestClient.get @@base_public_url + "/#{pair}/circuit_break_info"
151
+ end
152
+
121
153
  private
122
154
  def http_request(uri, request)
123
155
  https = Net::HTTP.new(uri.host, uri.port)
@@ -1,3 +1,3 @@
1
1
  module RubyBitbankcc
2
- VERSION = "0.1.5"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_bitbankcc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bitbankcc
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.0.3
119
+ rubygems_version: 3.0.3.1
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: This is ruby client of bitbankcc api