crypto-service 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypto-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Baldazzi
@@ -243,6 +243,20 @@ files:
243
243
  - lib/crypto/resources/stop.rb
244
244
  - lib/crypto/resources/top.rb
245
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
246
260
  homepage: https://github.com/Baldaz02/crypto-ruby
247
261
  licenses:
248
262
  - MIT
@@ -265,5 +279,19 @@ requirements: []
265
279
  rubygems_version: 3.3.24
266
280
  signing_key:
267
281
  specification_version: 4
268
- summary: crypto0.0.2
269
- 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