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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7600ab250d91c97a36cb6fb33ce10b11ef6db5d43271c9368d31a76b13417ba
4
- data.tar.gz: daed140199c98dfff1ece9c79f95203bba5fc09c044a826acacb744c0247c706
3
+ metadata.gz: 80daeb203ba139fb2cf1723674361978d045670293f485d826d8d4f558e4e37c
4
+ data.tar.gz: e223f54406a30c5b7255c29b2880e948d4d315a2c0c2de2839559af407cd8a7e
5
5
  SHA512:
6
- metadata.gz: 566991b0d4c5cfb4e44a17d07b64ee61947ea97efdc0556ac41d1a6d26c45f1d372efa7618d4c262bf0d58dfd05fac57ba3e9a86dff134579b8e12acd33620a8
7
- data.tar.gz: 364d1d38bff1f39cb245f4a5d0992eab9a6c3203676f512c46e26428a88a6f9eb16a384cdc0acee051b60f6fbe063899c04817f57844b3875c05ebaf9a14697e
6
+ metadata.gz: 632f9db1759a3e0fc7842ce5c8c65a53a611dc8a3f1150c56e7e519c7b06ef6b342bcd6960eaf4c6d8a1bb6075757ae447a2028ad1ecf37ff7e9660570f7fa3d
7
+ data.tar.gz: 9923eecd68e50aff98247e6d32fc2cf5aad33c1c873f5f002c69643d800f1233e205ca8bcb3af3069a0b18028c97913f85b69d38db13d2b35497f170aca18436
data/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
1
  /Gemfile.lock
2
- /vendor/bundler
2
+ /vendor/bundle
3
3
  /.bundle/*
4
4
  /pkg
@@ -51,7 +51,13 @@ class Bitbankcc
51
51
  request_for_get(path, nonce, params)
52
52
  end
53
53
 
54
- def create_order(pair, amount, price, side, type, post_only = false, trigger_price = nil)
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
@@ -1,3 +1,3 @@
1
1
  module RubyBitbankcc
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.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.3.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: 2024-12-06 00:00:00.000000000 Z
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.5.18
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: []