ruby_bitbankcc 0.3.0 → 0.5.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 +4 -4
- data/.gitignore +1 -1
- data/lib/ruby_bitbankcc/bitbankcc.rb +15 -2
- data/lib/ruby_bitbankcc/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e48f80aa8f0909af9b82e000a38671bb535f412a65cdab919bc42bde57e3988
|
4
|
+
data.tar.gz: a5d723ccb9c8587bbec729ea422a794ed7a0a16bc153454290031c7570f7db55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b70de6309bc958de176548924cf2fe3b543da982eb180185fe027e8c9f681a99737f09e088b68c16d2daec7c7d4328512b8e15b2ecfd65ea1c5b37ae377f72
|
7
|
+
data.tar.gz: bf7aca7e8058e8b2263b4b3ca7797f8985a927db67e7b63bfa0c3324d6099282dd1f6f2e04e9e47b18c5276d0d2ac598ca636e8f500f49db2ea25cfead40c10c
|
data/.gitignore
CHANGED
@@ -51,7 +51,13 @@ class Bitbankcc
|
|
51
51
|
request_for_get(path, nonce, params)
|
52
52
|
end
|
53
53
|
|
54
|
-
def
|
54
|
+
def read_margin_positions()
|
55
|
+
path = "/v1/user/margin/positions"
|
56
|
+
nonce = get_current_milisec
|
57
|
+
request_for_get(path, nonce)
|
58
|
+
end
|
59
|
+
|
60
|
+
def create_order(pair, amount, price, side, type, post_only = false, trigger_price = nil, position_side = nil)
|
55
61
|
path = "/v1/user/spot/order"
|
56
62
|
nonce = get_current_milisec
|
57
63
|
body = {
|
@@ -61,7 +67,8 @@ class Bitbankcc
|
|
61
67
|
side: side,
|
62
68
|
type: type,
|
63
69
|
post_only: post_only,
|
64
|
-
trigger_price: trigger_price
|
70
|
+
trigger_price: trigger_price,
|
71
|
+
position_side: position_side
|
65
72
|
}.to_json
|
66
73
|
request_for_post(path, nonce, body)
|
67
74
|
end
|
@@ -142,6 +149,12 @@ class Bitbankcc
|
|
142
149
|
request_for_get(path, nonce, params)
|
143
150
|
end
|
144
151
|
|
152
|
+
def read_user_subscribe()
|
153
|
+
path = "/v1/user/subscribe"
|
154
|
+
nonce = get_current_milisec
|
155
|
+
request_for_get(path, nonce)
|
156
|
+
end
|
157
|
+
|
145
158
|
def read_ticker(pair)
|
146
159
|
RestClient.get @@base_public_url + "/#{pair}/ticker"
|
147
160
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bitbankcc
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
83
|
+
description:
|
84
84
|
email:
|
85
85
|
- system@bitcoinbank.co.jp
|
86
86
|
executables: []
|
@@ -101,7 +101,7 @@ homepage: https://github.com/bitbankinc/ruby_bitbankcc
|
|
101
101
|
licenses: []
|
102
102
|
metadata:
|
103
103
|
allowed_push_host: https://rubygems.org
|
104
|
-
post_install_message:
|
104
|
+
post_install_message:
|
105
105
|
rdoc_options: []
|
106
106
|
require_paths:
|
107
107
|
- lib
|
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
120
|
-
signing_key:
|
119
|
+
rubygems_version: 3.0.3.1
|
120
|
+
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: This is ruby client of bitbankcc api
|
123
123
|
test_files: []
|