@rivascva/dt-idl 1.1.181 → 1.1.183

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.
package/dist/index.d.ts CHANGED
@@ -256,12 +256,12 @@ interface components$3 {
256
256
  */
257
257
  weekHigh52: number;
258
258
  /**
259
- * Format: int64
259
+ * Format: double
260
260
  * @example 164000000
261
261
  */
262
262
  volume: number;
263
263
  /**
264
- * Format: int64
264
+ * Format: double
265
265
  * @example 62000000
266
266
  */
267
267
  averageVolume: number;
@@ -43,18 +43,22 @@ type BaseRDB struct {
43
43
  verboseLog log.Logger
44
44
  }
45
45
 
46
- func NewBaseRDB(address string, username string, password string, service string) RDB {
46
+ func NewBaseRDB(url string, service string) (RDB, error) {
47
+ // parse the connection url
48
+ opts, err := goredis.ParseURL(url)
49
+ if err != nil {
50
+ return nil, fmt.Errorf("failed to parse the url: %w", err)
51
+ }
52
+
53
+ // create the redis client
54
+ client := goredis.NewClient(opts)
55
+
47
56
  //exhaustruct:ignore - other fields are optional
48
- client := goredis.NewClient(&goredis.Options{
49
- Addr: address,
50
- Username: username,
51
- Password: password,
52
- })
53
57
  return &BaseRDB{
54
58
  client: client,
55
59
  database: service,
56
60
  verboseLog: nil,
57
- }
61
+ }, nil
58
62
  }
59
63
 
60
64
  func (r *BaseRDB) NewRDB(database string) RDB {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.181",
3
+ "version": "1.1.183",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -399,13 +399,13 @@ components:
399
399
  format: double
400
400
  example: 192.75
401
401
  volume:
402
- type: integer
403
- format: int64
404
- example: 164000000
402
+ type: number
403
+ format: double
404
+ example: 164000000.00
405
405
  averageVolume:
406
- type: integer
407
- format: int64
408
- example: 62000000
406
+ type: number
407
+ format: double
408
+ example: 62000000.00
409
409
  marketCap:
410
410
  type: number
411
411
  format: double
@@ -255,12 +255,12 @@ export interface components {
255
255
  */
256
256
  weekHigh52: number;
257
257
  /**
258
- * Format: int64
258
+ * Format: double
259
259
  * @example 164000000
260
260
  */
261
261
  volume: number;
262
262
  /**
263
- * Format: int64
263
+ * Format: double
264
264
  * @example 62000000
265
265
  */
266
266
  averageVolume: number;