ruby_bitbankcc 0.3.0 → 0.4.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 +9 -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: 80daeb203ba139fb2cf1723674361978d045670293f485d826d8d4f558e4e37c
|
4
|
+
data.tar.gz: e223f54406a30c5b7255c29b2880e948d4d315a2c0c2de2839559af407cd8a7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 632f9db1759a3e0fc7842ce5c8c65a53a611dc8a3f1150c56e7e519c7b06ef6b342bcd6960eaf4c6d8a1bb6075757ae447a2028ad1ecf37ff7e9660570f7fa3d
|
7
|
+
data.tar.gz: 9923eecd68e50aff98247e6d32fc2cf5aad33c1c873f5f002c69643d800f1233e205ca8bcb3af3069a0b18028c97913f85b69d38db13d2b35497f170aca18436
|
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
|
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.4.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-03-14 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: []
|