viabtc 1.4.0 â 1.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/.github/workflows/test.yml +4 -4
- data/.tool-versions +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +33 -6
- data/lib/viabtc/version.rb +1 -1
- data/viabtc.gemspec +2 -2
- metadata +12 -11
- data/.github/workflows/publish.yml +0 -24
- data/Gemfile.lock +0 -87
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a32617f0a14be083e1fd11fc0fd5184c3006dce1affa50bad41b7123f1ec415
|
|
4
|
+
data.tar.gz: e7c8785a619f9aeb6919dd5542a8e538563346c3029ab68f74ee8c23643db7a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78548687590624c0a1abccc7266ed8d776692bc6779e0f6092736ed3ae2c54ba2ab5cf310ea323d324bf4b9305084ab8e5708d3617a0b4ba24a5a635f77df5a8
|
|
7
|
+
data.tar.gz: 546c8d6f5e280948fa8708cce52f366bf0212266b690e61ffcfb9149eb3c8d3dfade43bb7e87f2fc4608e1bef00c67cc357d47d3ed450a3380a2212bd13df20c
|
data/.github/workflows/test.yml
CHANGED
|
@@ -19,10 +19,10 @@ jobs:
|
|
|
19
19
|
strategy:
|
|
20
20
|
fail-fast: false
|
|
21
21
|
matrix:
|
|
22
|
-
ruby: [
|
|
22
|
+
ruby: ["3.4.1", "3.3.6", "3.2.6", "3.1.6"]
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
|
-
- uses: actions/checkout@
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
26
|
- uses: ruby/setup-ruby@v1
|
|
27
27
|
with:
|
|
28
28
|
ruby-version: ${{ matrix.ruby }}
|
|
@@ -39,10 +39,10 @@ jobs:
|
|
|
39
39
|
strategy:
|
|
40
40
|
fail-fast: false
|
|
41
41
|
matrix:
|
|
42
|
-
ruby: [
|
|
42
|
+
ruby: ["3.4.1", "3.3.6", "3.2.6", "3.1.6"]
|
|
43
43
|
|
|
44
44
|
steps:
|
|
45
|
-
- uses: actions/checkout@
|
|
45
|
+
- uses: actions/checkout@v4
|
|
46
46
|
- uses: ruby/setup-ruby@v1
|
|
47
47
|
with:
|
|
48
48
|
ruby-version: ${{ matrix.ruby }}
|
data/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby 3.
|
|
1
|
+
ruby 3.4.1
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ViaBTC ð
|
|
2
2
|
|
|
3
|
-
[](https://github.com/krmbzds/viabtc/actions/workflows/test.yml) [](https://rubygems.org/gems/viabtc) [](https://coveralls.io/github/krmbzds/viabtc?branch=develop) [](https://rubygems.org/gems/viabtc) [](https://www.rubydoc.info/gems/viabtc/)
|
|
4
4
|
|
|
5
5
|
An HTTP client to interface with the open-source [ViaBTC Exchange Server][ViaBTC Exchange Server Repo].
|
|
6
6
|
|
|
@@ -40,15 +40,42 @@ viabtc_http_client.market_status(market: 'ETHBTC')
|
|
|
40
40
|
|
|
41
41
|
#### Ruby Versions Tested Against
|
|
42
42
|
|
|
43
|
-
- â
`3.
|
|
44
|
-
- â
`3.
|
|
45
|
-
- â
`2.
|
|
46
|
-
- âģ `
|
|
43
|
+
- â
`3.4.1` (stable)
|
|
44
|
+
- â
`3.3.6` (stable)
|
|
45
|
+
- â
`3.2.6` (stable)
|
|
46
|
+
- âģ `3.1.6` (security maintenance)
|
|
47
|
+
- ðŠĶ `3.0.7` (end of life)
|
|
47
48
|
|
|
48
49
|
#### ViaBTC Exchange Server API Support
|
|
49
50
|
|
|
50
51
|
- ð [HTTP Protocol](https://github.com/krmbzds/viabtc/wiki/API-Support#http-protocol)
|
|
51
52
|
|
|
53
|
+
| API Method | Corresponding Methods |
|
|
54
|
+
|---|---|
|
|
55
|
+
| `balance.query` | `#balance` |
|
|
56
|
+
| `balance.update` | `#withdraw` `#deposit` |
|
|
57
|
+
| `balance.history` | `#balance_history` |
|
|
58
|
+
| `asset.list` | `#asset_list` |
|
|
59
|
+
| `asset.summary` | `#asset_summary` |
|
|
60
|
+
| `order.put_limit` | `#limit_sell` `#limit_buy` |
|
|
61
|
+
| `order.put_market` | `#market_sell` `#market_buy` |
|
|
62
|
+
| `order.cancel` | `#cancel_order` |
|
|
63
|
+
| `order.deals` | `#order_deals` |
|
|
64
|
+
| `order.book` | `#sell_orders` `#buy_orders` |
|
|
65
|
+
| `order.depth` | `#order_depth` |
|
|
66
|
+
| `order.pending` | `#pending_orders` |
|
|
67
|
+
| `order.pending_detail` | `#pending_order_details` |
|
|
68
|
+
| `order.finished` | `#finished_orders` `#finished_sell_orders` `#finished_buy_orders` |
|
|
69
|
+
| `order.finished_detail` | `#finished_order_detail` |
|
|
70
|
+
| `market.last` | `#market_last` |
|
|
71
|
+
| `market.deals` | `#market_deals` |
|
|
72
|
+
| `market.user_deals` | `#user_executed_orders` |
|
|
73
|
+
| `market.kline` | `#market_kline` |
|
|
74
|
+
| `market.status` | `#market_status` |
|
|
75
|
+
| `market.status_today` | `#market_status_today` |
|
|
76
|
+
| `market.list` | `#market_list` |
|
|
77
|
+
| `market.summary` | `#market_summary` |
|
|
78
|
+
|
|
52
79
|
## Development
|
|
53
80
|
|
|
54
81
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
@@ -74,7 +101,7 @@ Yes.
|
|
|
74
101
|
|
|
75
102
|
## License
|
|
76
103
|
|
|
77
|
-
Copyright ÂĐ
|
|
104
|
+
Copyright ÂĐ 2018-2025 [Kerem Bozdas][Personal Webpage]
|
|
78
105
|
|
|
79
106
|
This gem is available under the terms of the [MIT License][License].
|
|
80
107
|
|
data/lib/viabtc/version.rb
CHANGED
data/viabtc.gemspec
CHANGED
|
@@ -26,10 +26,10 @@ Gem::Specification.new do |spec|
|
|
|
26
26
|
spec.require_paths = ["lib"]
|
|
27
27
|
|
|
28
28
|
# Ruby required keyword arguments
|
|
29
|
-
spec.required_ruby_version = ">=
|
|
29
|
+
spec.required_ruby_version = ">= 3.1.6"
|
|
30
30
|
|
|
31
31
|
# Runtime dependencies
|
|
32
|
-
spec.add_dependency "faraday", "~> 2.2"
|
|
32
|
+
spec.add_dependency "faraday", "~> 2.12", ">= 2.12.2"
|
|
33
33
|
|
|
34
34
|
# Development dependencies
|
|
35
35
|
spec.add_development_dependency "bundler"
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: viabtc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kerem Bozdas
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2025-01-01 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: faraday
|
|
@@ -16,14 +15,20 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2.
|
|
18
|
+
version: '2.12'
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 2.12.2
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
25
|
requirements:
|
|
24
26
|
- - "~>"
|
|
25
27
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2.
|
|
28
|
+
version: '2.12'
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 2.12.2
|
|
27
32
|
- !ruby/object:Gem::Dependency
|
|
28
33
|
name: bundler
|
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -102,13 +107,11 @@ extensions: []
|
|
|
102
107
|
extra_rdoc_files: []
|
|
103
108
|
files:
|
|
104
109
|
- ".editorconfig"
|
|
105
|
-
- ".github/workflows/publish.yml"
|
|
106
110
|
- ".github/workflows/test.yml"
|
|
107
111
|
- ".gitignore"
|
|
108
112
|
- ".rspec"
|
|
109
113
|
- ".tool-versions"
|
|
110
114
|
- Gemfile
|
|
111
|
-
- Gemfile.lock
|
|
112
115
|
- LICENSE.txt
|
|
113
116
|
- README.md
|
|
114
117
|
- Rakefile
|
|
@@ -125,7 +128,6 @@ homepage: https://github.com/krmbzds/viabtc/
|
|
|
125
128
|
licenses:
|
|
126
129
|
- MIT
|
|
127
130
|
metadata: {}
|
|
128
|
-
post_install_message:
|
|
129
131
|
rdoc_options: []
|
|
130
132
|
require_paths:
|
|
131
133
|
- lib
|
|
@@ -133,15 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
133
135
|
requirements:
|
|
134
136
|
- - ">="
|
|
135
137
|
- !ruby/object:Gem::Version
|
|
136
|
-
version:
|
|
138
|
+
version: 3.1.6
|
|
137
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
140
|
requirements:
|
|
139
141
|
- - ">="
|
|
140
142
|
- !ruby/object:Gem::Version
|
|
141
143
|
version: '0'
|
|
142
144
|
requirements: []
|
|
143
|
-
rubygems_version: 3.
|
|
144
|
-
signing_key:
|
|
145
|
+
rubygems_version: 3.6.2
|
|
145
146
|
specification_version: 4
|
|
146
147
|
summary: ViaBTC Exchange Server API Wrapper
|
|
147
148
|
test_files: []
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [published]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
name: Publish Packages
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v2
|
|
14
|
-
|
|
15
|
-
- name: Set up Ruby
|
|
16
|
-
uses: ruby/setup-ruby@v1
|
|
17
|
-
with:
|
|
18
|
-
bundler-cache: true
|
|
19
|
-
|
|
20
|
-
- name: Publish to RubyGems
|
|
21
|
-
uses: dawidd6/action-publish-gem@v1
|
|
22
|
-
with:
|
|
23
|
-
api_key: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
|
24
|
-
github_token: ${{secrets.VIABTC_GITHUB_AUTH_TOKEN}}
|
data/Gemfile.lock
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
viabtc (1.4.0)
|
|
5
|
-
faraday (~> 2.2)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
ast (2.4.2)
|
|
11
|
-
coveralls_reborn (0.24.0)
|
|
12
|
-
simplecov (>= 0.18.1, < 0.22.0)
|
|
13
|
-
term-ansicolor (~> 1.6)
|
|
14
|
-
thor (>= 0.20.3, < 2.0)
|
|
15
|
-
tins (~> 1.16)
|
|
16
|
-
diff-lcs (1.5.0)
|
|
17
|
-
docile (1.4.0)
|
|
18
|
-
faraday (2.2.0)
|
|
19
|
-
faraday-net_http (~> 2.0)
|
|
20
|
-
ruby2_keywords (>= 0.0.4)
|
|
21
|
-
faraday-net_http (2.0.1)
|
|
22
|
-
parallel (1.21.0)
|
|
23
|
-
parser (3.1.1.0)
|
|
24
|
-
ast (~> 2.4.1)
|
|
25
|
-
rainbow (3.1.1)
|
|
26
|
-
rake (13.0.6)
|
|
27
|
-
regexp_parser (2.2.1)
|
|
28
|
-
rexml (3.2.5)
|
|
29
|
-
rspec (3.11.0)
|
|
30
|
-
rspec-core (~> 3.11.0)
|
|
31
|
-
rspec-expectations (~> 3.11.0)
|
|
32
|
-
rspec-mocks (~> 3.11.0)
|
|
33
|
-
rspec-core (3.11.0)
|
|
34
|
-
rspec-support (~> 3.11.0)
|
|
35
|
-
rspec-expectations (3.11.0)
|
|
36
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
37
|
-
rspec-support (~> 3.11.0)
|
|
38
|
-
rspec-mocks (3.11.0)
|
|
39
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
40
|
-
rspec-support (~> 3.11.0)
|
|
41
|
-
rspec-support (3.11.0)
|
|
42
|
-
rubocop (1.25.1)
|
|
43
|
-
parallel (~> 1.10)
|
|
44
|
-
parser (>= 3.1.0.0)
|
|
45
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
46
|
-
regexp_parser (>= 1.8, < 3.0)
|
|
47
|
-
rexml
|
|
48
|
-
rubocop-ast (>= 1.15.1, < 2.0)
|
|
49
|
-
ruby-progressbar (~> 1.7)
|
|
50
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
|
51
|
-
rubocop-ast (1.16.0)
|
|
52
|
-
parser (>= 3.1.1.0)
|
|
53
|
-
rubocop-performance (1.13.3)
|
|
54
|
-
rubocop (>= 1.7.0, < 2.0)
|
|
55
|
-
rubocop-ast (>= 0.4.0)
|
|
56
|
-
ruby-progressbar (1.11.0)
|
|
57
|
-
ruby2_keywords (0.0.5)
|
|
58
|
-
simplecov (0.21.2)
|
|
59
|
-
docile (~> 1.1)
|
|
60
|
-
simplecov-html (~> 0.11)
|
|
61
|
-
simplecov_json_formatter (~> 0.1)
|
|
62
|
-
simplecov-html (0.12.3)
|
|
63
|
-
simplecov_json_formatter (0.1.4)
|
|
64
|
-
standard (1.7.3)
|
|
65
|
-
rubocop (= 1.25.1)
|
|
66
|
-
rubocop-performance (= 1.13.3)
|
|
67
|
-
sync (0.5.0)
|
|
68
|
-
term-ansicolor (1.7.1)
|
|
69
|
-
tins (~> 1.0)
|
|
70
|
-
thor (1.2.1)
|
|
71
|
-
tins (1.31.0)
|
|
72
|
-
sync
|
|
73
|
-
unicode-display_width (2.1.0)
|
|
74
|
-
|
|
75
|
-
PLATFORMS
|
|
76
|
-
x86_64-linux
|
|
77
|
-
|
|
78
|
-
DEPENDENCIES
|
|
79
|
-
bundler
|
|
80
|
-
coveralls_reborn
|
|
81
|
-
rake
|
|
82
|
-
rspec
|
|
83
|
-
standard
|
|
84
|
-
viabtc!
|
|
85
|
-
|
|
86
|
-
BUNDLED WITH
|
|
87
|
-
2.3.7
|