bitfinex-rb 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bitfinex.rb +0 -0
- data/lib/errors.rb +0 -0
- data/lib/models/alert.rb +0 -0
- data/lib/models/balance_info.rb +0 -0
- data/lib/models/candle.rb +0 -0
- data/lib/models/currency.rb +0 -0
- data/lib/models/funding_credit.rb +0 -0
- data/lib/models/funding_info.rb +0 -0
- data/lib/models/funding_loan.rb +0 -0
- data/lib/models/funding_offer.rb +2 -2
- data/lib/models/funding_ticker.rb +0 -0
- data/lib/models/funding_trade.rb +0 -0
- data/lib/models/ledger_entry.rb +0 -0
- data/lib/models/margin_info.rb +0 -0
- data/lib/models/model.rb +0 -0
- data/lib/models/movement.rb +0 -0
- data/lib/models/notification.rb +0 -0
- data/lib/models/order.rb +5 -5
- data/lib/models/order_book.rb +0 -0
- data/lib/models/position.rb +0 -0
- data/lib/models/public_trade.rb +0 -0
- data/lib/models/trade.rb +0 -0
- data/lib/models/trading_ticker.rb +0 -0
- data/lib/models/user_info.rb +0 -0
- data/lib/models/wallet.rb +0 -0
- data/lib/rest/rest_client.rb +0 -0
- data/lib/rest/v1.rb +0 -0
- data/lib/rest/v1/account_info.rb +0 -0
- data/lib/rest/v1/deposit.rb +0 -0
- data/lib/rest/v1/funding_book.rb +0 -0
- data/lib/rest/v1/historical_data.rb +0 -0
- data/lib/rest/v1/lends.rb +0 -0
- data/lib/rest/v1/margin_funding.rb +0 -0
- data/lib/rest/v1/order_book.rb +0 -0
- data/lib/rest/v1/orders.rb +0 -0
- data/lib/rest/v1/positions.rb +0 -0
- data/lib/rest/v1/stats.rb +0 -0
- data/lib/rest/v1/symbols.rb +0 -0
- data/lib/rest/v1/ticker.rb +0 -0
- data/lib/rest/v1/trades.rb +0 -0
- data/lib/rest/v1/wallet.rb +0 -0
- data/lib/rest/v2.rb +0 -0
- data/lib/rest/v2/funding.rb +1 -1
- data/lib/rest/v2/margin.rb +0 -0
- data/lib/rest/v2/orders.rb +0 -0
- data/lib/rest/v2/personal.rb +0 -0
- data/lib/rest/v2/positions.rb +0 -0
- data/lib/rest/v2/stats.rb +0 -0
- data/lib/rest/v2/ticker.rb +0 -0
- data/lib/rest/v2/trading.rb +0 -0
- data/lib/rest/v2/utils.rb +0 -0
- data/lib/rest/v2/wallet.rb +0 -0
- data/lib/ws/ws2.rb +0 -0
- metadata +40 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f7924af447392a9be6ef006227cf652f09f83b0f76da73df6fb447c516ba0c5
|
4
|
+
data.tar.gz: b4d0795ca282e96c5a8538c7579d9aa91fd4589480e8b0a5b205c1fb79f021ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3acd8e53c548a2469284b3f9c3ff63403b8ee026d056aa0825d6cd4253d8ffce3db2f661675a46e54809518e79b9c2b358e20d02dd964ef8e00e020105e1db67
|
7
|
+
data.tar.gz: cb8ef26ed9d139d7d09b574afbb5cdcc031393be5db455aa46e93c19f89241c9682baaef5279ee53f5affbc836c14b0611fda67861ddc0a9e26278c5de1640ca
|
data/lib/bitfinex.rb
CHANGED
File without changes
|
data/lib/errors.rb
CHANGED
File without changes
|
data/lib/models/alert.rb
CHANGED
File without changes
|
data/lib/models/balance_info.rb
CHANGED
File without changes
|
data/lib/models/candle.rb
CHANGED
File without changes
|
data/lib/models/currency.rb
CHANGED
File without changes
|
File without changes
|
data/lib/models/funding_info.rb
CHANGED
File without changes
|
data/lib/models/funding_loan.rb
CHANGED
File without changes
|
data/lib/models/funding_offer.rb
CHANGED
@@ -38,8 +38,8 @@ module Bitfinex
|
|
38
38
|
data = {
|
39
39
|
:type => @type,
|
40
40
|
:symbol => @symbol,
|
41
|
-
:amount => BigDecimal
|
42
|
-
:rate => BigDecimal
|
41
|
+
:amount => BigDecimal(@amount, 8).to_s,
|
42
|
+
:rate => BigDecimal(@rate, 8).to_s,
|
43
43
|
:period => 2
|
44
44
|
}
|
45
45
|
if !@flags.nil?
|
File without changes
|
data/lib/models/funding_trade.rb
CHANGED
File without changes
|
data/lib/models/ledger_entry.rb
CHANGED
File without changes
|
data/lib/models/margin_info.rb
CHANGED
File without changes
|
data/lib/models/model.rb
CHANGED
File without changes
|
data/lib/models/movement.rb
CHANGED
File without changes
|
data/lib/models/notification.rb
CHANGED
File without changes
|
data/lib/models/order.rb
CHANGED
@@ -173,7 +173,7 @@ module Bitfinex
|
|
173
173
|
:cid => cid,
|
174
174
|
:symbol => @symbol,
|
175
175
|
:type => @type,
|
176
|
-
:amount => BigDecimal
|
176
|
+
:amount => BigDecimal(@amount, 8).to_s,
|
177
177
|
:flags => @flags || 0,
|
178
178
|
:meta => @meta
|
179
179
|
}
|
@@ -184,14 +184,14 @@ module Bitfinex
|
|
184
184
|
data[:lev] = @lev
|
185
185
|
end
|
186
186
|
|
187
|
-
data[:price] = BigDecimal
|
188
|
-
data[:price_trailing] = BigDecimal
|
187
|
+
data[:price] = BigDecimal(@price, 5).to_s if !@price.nil?
|
188
|
+
data[:price_trailing] = BigDecimal(@price_trailing, 5).to_s if !@price_trailing.nil?
|
189
189
|
|
190
190
|
if !@price_aux_limit.nil?
|
191
191
|
if is_oco
|
192
|
-
data[:price_oco_stop] = BigDecimal
|
192
|
+
data[:price_oco_stop] = BigDecimal(@price_aux_limit, 5).to_s
|
193
193
|
else
|
194
|
-
data[:price_aux_limit] = BigDecimal
|
194
|
+
data[:price_aux_limit] = BigDecimal(@price_aux_limit, 5).to_s
|
195
195
|
end
|
196
196
|
end
|
197
197
|
|
data/lib/models/order_book.rb
CHANGED
File without changes
|
data/lib/models/position.rb
CHANGED
File without changes
|
data/lib/models/public_trade.rb
CHANGED
File without changes
|
data/lib/models/trade.rb
CHANGED
File without changes
|
File without changes
|
data/lib/models/user_info.rb
CHANGED
File without changes
|
data/lib/models/wallet.rb
CHANGED
File without changes
|
data/lib/rest/rest_client.rb
CHANGED
File without changes
|
data/lib/rest/v1.rb
CHANGED
File without changes
|
data/lib/rest/v1/account_info.rb
CHANGED
File without changes
|
data/lib/rest/v1/deposit.rb
CHANGED
File without changes
|
data/lib/rest/v1/funding_book.rb
CHANGED
File without changes
|
File without changes
|
data/lib/rest/v1/lends.rb
CHANGED
File without changes
|
File without changes
|
data/lib/rest/v1/order_book.rb
CHANGED
File without changes
|
data/lib/rest/v1/orders.rb
CHANGED
File without changes
|
data/lib/rest/v1/positions.rb
CHANGED
File without changes
|
data/lib/rest/v1/stats.rb
CHANGED
File without changes
|
data/lib/rest/v1/symbols.rb
CHANGED
File without changes
|
data/lib/rest/v1/ticker.rb
CHANGED
File without changes
|
data/lib/rest/v1/trades.rb
CHANGED
File without changes
|
data/lib/rest/v1/wallet.rb
CHANGED
File without changes
|
data/lib/rest/v2.rb
CHANGED
File without changes
|
data/lib/rest/v2/funding.rb
CHANGED
@@ -78,7 +78,7 @@ module Bitfinex
|
|
78
78
|
# @return [Array] Raw notification
|
79
79
|
###
|
80
80
|
def submit_funding_auto(currency, amount, period, rate='0', status=1)
|
81
|
-
dec_amount = BigDecimal
|
81
|
+
dec_amount = BigDecimal(amount, 8).to_s
|
82
82
|
payload = { :status => status, :currency => currency, :amount => dec_amount, :period => period, :rate => rate }
|
83
83
|
authenticated_post("auth/w/funding/auto", params: payload).body
|
84
84
|
end
|
data/lib/rest/v2/margin.rb
CHANGED
File without changes
|
data/lib/rest/v2/orders.rb
CHANGED
File without changes
|
data/lib/rest/v2/personal.rb
CHANGED
File without changes
|
data/lib/rest/v2/positions.rb
CHANGED
File without changes
|
data/lib/rest/v2/stats.rb
CHANGED
File without changes
|
data/lib/rest/v2/ticker.rb
CHANGED
File without changes
|
data/lib/rest/v2/trading.rb
CHANGED
File without changes
|
data/lib/rest/v2/utils.rb
CHANGED
File without changes
|
data/lib/rest/v2/wallet.rb
CHANGED
File without changes
|
data/lib/ws/ws2.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,73 +1,73 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitfinex-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bitfinex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.15.3
|
20
|
-
- - "
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.15.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 0.15.3
|
30
|
-
- - "
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.15.3
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: eventmachine
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: 1.2.7
|
40
|
-
- - "
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.2.7
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 1.2.7
|
50
|
-
- - "
|
50
|
+
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.2.7
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: faraday-detailed_logger
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "
|
57
|
+
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: 2.1.2
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 2.1.2
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 2.1.2
|
70
|
-
- - "
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 2.1.2
|
73
73
|
- !ruby/object:Gem::Dependency
|
@@ -88,120 +88,120 @@ dependencies:
|
|
88
88
|
name: json
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- - "
|
91
|
+
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 2.2.0
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.2.0
|
97
97
|
type: :runtime
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 2.2.0
|
104
|
-
- - "
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: 2.2.0
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: faraday_middleware
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: 0.12.2
|
114
|
-
- - "
|
114
|
+
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: 0.12.2
|
117
117
|
type: :runtime
|
118
118
|
prerelease: false
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - "
|
121
|
+
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: 0.12.2
|
124
|
-
- - "
|
124
|
+
- - ">="
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: 0.12.2
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: emittr
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- - "
|
131
|
+
- - "~>"
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: 0.1.0
|
134
|
-
- - "
|
134
|
+
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: 0.1.0
|
137
137
|
type: :runtime
|
138
138
|
prerelease: false
|
139
139
|
version_requirements: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
|
-
- - "
|
141
|
+
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: 0.1.0
|
144
|
-
- - "
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: 0.1.0
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: dotenv
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- - "
|
151
|
+
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: 2.5.0
|
154
|
-
- - "
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: 2.5.0
|
157
157
|
type: :runtime
|
158
158
|
prerelease: false
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- - "
|
161
|
+
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: 2.5.0
|
164
|
-
- - "
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 2.5.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: faraday_adapter_socks
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: 0.1.1
|
174
|
-
- - "
|
174
|
+
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
176
|
version: 0.1.1
|
177
177
|
type: :runtime
|
178
178
|
prerelease: false
|
179
179
|
version_requirements: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
|
-
- - "
|
181
|
+
- - "~>"
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: 0.1.1
|
184
|
-
- - "
|
184
|
+
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: 0.1.1
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: zlib
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
|
-
- - "
|
191
|
+
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: 1.0.0
|
194
|
-
- - "
|
194
|
+
- - ">="
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: 1.0.0
|
197
197
|
type: :runtime
|
198
198
|
prerelease: false
|
199
199
|
version_requirements: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
|
-
- - "
|
201
|
+
- - "~>"
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: 1.0.0
|
204
|
-
- - "
|
204
|
+
- - ">="
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: 1.0.0
|
207
207
|
description: Official Bitfinex API ruby wrapper
|
@@ -283,7 +283,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
283
|
- !ruby/object:Gem::Version
|
284
284
|
version: '0'
|
285
285
|
requirements: []
|
286
|
-
|
286
|
+
rubyforge_project:
|
287
|
+
rubygems_version: 2.7.6
|
287
288
|
signing_key:
|
288
289
|
specification_version: 4
|
289
290
|
summary: Bitfinex API Wrapper
|