crypto-service 0.0.1 → 0.0.3

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.
@@ -0,0 +1,44 @@
1
+ [
2
+ {
3
+ "code": 0,
4
+ "data": {
5
+ " asset_fee": "30.427265344000000000000000",
6
+ "amount": 43724611,
7
+ "avg_price": "54334.4024",
8
+ "client_id ": "",
9
+ "create_time": 1636020409,
10
+ "deal_amount": "1",
11
+ "deal_fee": "0",
12
+ "deal_money": "54334.4024000000000000",
13
+ "fee_asset": "CET",
14
+ "fee_discount": "0.70",
15
+ "finished_time": null,
16
+ "id": 35435973,
17
+ "left": "0.00000000 ",
18
+ "maker_fee_rate": "0",
19
+ "market": "BTCUSDT",
20
+ "money_fee": "0",
21
+ "order_type": "market",
22
+ "price": " 0",
23
+ "source_id": "1234",
24
+ "status": "done",
25
+ "stock_fee": "0",
26
+ "taker_fee_rate": "0.0016",
27
+ "type": "sell"
28
+ },
29
+ "message": "Success",
30
+ "operation": "B"
31
+ },
32
+ {
33
+ "status": "success",
34
+ "code": 200,
35
+ "payload": { "code": 0, "data": { "status": "success" }, "message": "Success" },
36
+ "operation": "SL"
37
+ },
38
+ {
39
+ "status": "success",
40
+ "code": 200,
41
+ "payload": { "code": 0, "data": { "status": "success" }, "message": "Success" },
42
+ "operation": "TP"
43
+ }
44
+ ]
@@ -0,0 +1,33 @@
1
+ {
2
+ "code": 200,
3
+ "payload": [
4
+ {
5
+ "date_added": "2022-12-30T09:23:06.000Z",
6
+ "img": "https://s2.coinmarketcap.com/static/img/coins/64x64/23097.png",
7
+ "mode": "listing",
8
+ "name": "T23",
9
+ "quote": { "fully_diluted_market_cap": 38724024.85, "last_updated": "2022-12-30T15:24:00.000Z",
10
+ "market_cap": 0, "market_cap_dominance": 0, "percent_change_1h": -11.12905772, "percent_change_24h": 78.45929084, "percent_change_30d": 78.45929084, "percent_change_60d": 78.45929084, "percent_change_7d": 78.45929084, "percent_change_90d": 78.45929084, "price": 3.872402485423898e-08, "tvl": null, "volume_24h": 417136.6789369, "volume_change_24h": 0 },
11
+ "symbol": "T23"
12
+ },
13
+ {
14
+ "date_added": "2022-12-30T08:50:56.000Z",
15
+ "img": "https://s2.coinmarketcap.com/static/img/coins/64x64/23096.png",
16
+ "mode": "listing",
17
+ "name": "Shichi",
18
+ "quote": { "fully_diluted_market_cap": 621230.66, "last_updated": "2022-12-30T15:24:00.000Z",
19
+ "market_cap": 0, "market_cap_dominance": 0, "percent_change_1h": -4.8340513, "percent_change_24h": -10.73891661, "percent_change_30d": -10.73891661, "percent_change_60d": -10.73891661, "percent_change_7d": -10.73891661, "percent_change_90d": -10.73891661, "price": 0.0006212306628324159, "tvl": null, "volume_24h": 66823.46584229, "volume_change_24h": 0 },
20
+ "symbol": "七"
21
+ },
22
+ {
23
+ "date_added": "2022-12-30T06:58:50.000Z",
24
+ "img": "https://s2.coinmarketcap.com/static/img/coins/64x64/23095.png",
25
+ "mode": "listing",
26
+ "name": "Bonk",
27
+ "quote": { "fully_diluted_market_cap": 9185210.19, "last_updated": "2022-12-30T15:24:00.000Z",
28
+ "market_cap": 0, "market_cap_dominance": 0, "percent_change_1h": -2.08214707, "percent_change_24h": -16.00033055, "percent_change_30d": -16.00033055, "percent_change_60d": -16.00033055, "percent_change_7d": -16.00033055, "percent_change_90d": -16.00033055, "price": 9.197382244118692e-08, "tvl": null, "volume_24h": 35625.00099438, "volume_change_24h": 0 },
29
+ "symbol": "BONK"
30
+ }
31
+ ],
32
+ "status": "success"
33
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypto-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Baldazzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-09 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -52,6 +52,48 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.0.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: coinpaprika
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.0.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.0.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: gecko-api
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.0.3
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.0.3
83
+ - !ruby/object:Gem::Dependency
84
+ name: string-similarity
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 2.1.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.1.0
55
97
  - !ruby/object:Gem::Dependency
56
98
  name: zeitwerk
57
99
  requirement: !ruby/object:Gem::Requirement
@@ -191,14 +233,30 @@ files:
191
233
  - lib/crypto/autoloader.rb
192
234
  - lib/crypto/base.rb
193
235
  - lib/crypto/resources/buy.rb
236
+ - lib/crypto/resources/exchange.rb
194
237
  - lib/crypto/resources/exchanges/cx.rb
195
238
  - lib/crypto/resources/listing.rb
196
239
  - lib/crypto/resources/loss.rb
240
+ - lib/crypto/resources/operation.rb
197
241
  - lib/crypto/resources/profit.rb
198
242
  - lib/crypto/resources/sell.rb
199
243
  - lib/crypto/resources/stop.rb
200
244
  - lib/crypto/resources/top.rb
201
245
  - lib/crypto/version.rb
246
+ - spec/fixtures/coinex/cx_balance_info.json
247
+ - spec/fixtures/coinex/cx_error.json
248
+ - spec/fixtures/coinex/cx_order_limit.json
249
+ - spec/fixtures/coinex/cx_order_market.json
250
+ - spec/fixtures/coinpaprika/coinpaprika_exchanges.json
251
+ - spec/fixtures/coinpaprika/coinpaprika_info.json
252
+ - spec/fixtures/crypto_listing_info.json
253
+ - spec/fixtures/crypto_listing_info_fail.json
254
+ - spec/fixtures/crypto_top_info.json
255
+ - spec/fixtures/gecko/gecko_coin_exchanges.json
256
+ - spec/fixtures/gecko/gecko_coin_info.json
257
+ - spec/fixtures/gecko/gecko_coin_info_fail.json
258
+ - spec/fixtures/test/crypto_buy.json
259
+ - spec/fixtures/test/crypto_listing.json
202
260
  homepage: https://github.com/Baldaz02/crypto-ruby
203
261
  licenses:
204
262
  - MIT
@@ -221,5 +279,19 @@ requirements: []
221
279
  rubygems_version: 3.3.24
222
280
  signing_key:
223
281
  specification_version: 4
224
- summary: crypto0.0.1
225
- test_files: []
282
+ summary: crypto0.0.3
283
+ test_files:
284
+ - spec/fixtures/coinex/cx_balance_info.json
285
+ - spec/fixtures/coinex/cx_error.json
286
+ - spec/fixtures/coinex/cx_order_limit.json
287
+ - spec/fixtures/coinex/cx_order_market.json
288
+ - spec/fixtures/coinpaprika/coinpaprika_exchanges.json
289
+ - spec/fixtures/coinpaprika/coinpaprika_info.json
290
+ - spec/fixtures/crypto_listing_info.json
291
+ - spec/fixtures/crypto_listing_info_fail.json
292
+ - spec/fixtures/crypto_top_info.json
293
+ - spec/fixtures/gecko/gecko_coin_exchanges.json
294
+ - spec/fixtures/gecko/gecko_coin_info.json
295
+ - spec/fixtures/gecko/gecko_coin_info_fail.json
296
+ - spec/fixtures/test/crypto_buy.json
297
+ - spec/fixtures/test/crypto_listing.json