@exodus/market-history 7.4.0 → 7.4.1
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/CHANGELOG.md +6 -0
- package/module/index.js +18 -19
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.4.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/market-history@7.4.0...@exodus/market-history@7.4.1) (2024-06-11)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **pricing:** increase market history jitter ([#7332](https://github.com/ExodusMovement/exodus-hydra/issues/7332)) ([fdd2c24](https://github.com/ExodusMovement/exodus-hydra/commit/fdd2c24b60f7761956bc5d52d225d523ad8be52b))
|
|
11
|
+
|
|
6
12
|
## [7.4.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/market-history@7.3.1...@exodus/market-history@7.4.0) (2024-03-01)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/module/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mapValues, SynchronizedTime } from '@exodus/basic-utils'
|
|
2
|
-
import ExodusModule from '@exodus/module'
|
|
2
|
+
import ExodusModule from '@exodus/module' // eslint-disable-line import/no-deprecated
|
|
3
3
|
import { fetchHistoricalPrices, fetchPricesInterval } from '@exodus/price-api'
|
|
4
4
|
import ms from 'ms'
|
|
5
5
|
|
|
@@ -339,26 +339,25 @@ class MarketHistoryMonitor extends ExodusModule {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
#setupTimers = () => {
|
|
342
|
-
const
|
|
342
|
+
const jitters = {
|
|
343
|
+
day: ms('3m'),
|
|
344
|
+
hour: ms('15s'),
|
|
345
|
+
}
|
|
343
346
|
const getCurrentTime = SynchronizedTime.now
|
|
344
|
-
const
|
|
345
|
-
const updateHourPrices = this.update.bind(this, 'hour')
|
|
346
|
-
|
|
347
|
-
fetchPricesInterval({
|
|
348
|
-
func: updateDayPrices,
|
|
349
|
-
abortController: this.#abortController,
|
|
350
|
-
granularity: 'day',
|
|
351
|
-
getJitter: () => jitter,
|
|
352
|
-
getCurrentTime,
|
|
353
|
-
})
|
|
347
|
+
const updatePrices = (granularity) => this.update.bind(this, granularity)
|
|
354
348
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
349
|
+
const fetchPricesForGranularity = (granularity) => {
|
|
350
|
+
fetchPricesInterval({
|
|
351
|
+
func: updatePrices(granularity),
|
|
352
|
+
abortController: this.#abortController,
|
|
353
|
+
granularity,
|
|
354
|
+
getJitter: () => jitters[granularity],
|
|
355
|
+
getCurrentTime,
|
|
356
|
+
})
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
fetchPricesForGranularity('day')
|
|
360
|
+
fetchPricesForGranularity('hour')
|
|
362
361
|
}
|
|
363
362
|
|
|
364
363
|
start = async () => {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/market-history",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "Fetches historical prices for assets",
|
|
5
|
-
"author": "Exodus Movement Inc.",
|
|
5
|
+
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lint": "run -T eslint . --ignore-path ../../.gitignore",
|
|
@@ -33,19 +33,16 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@exodus/assets": "^8.0.94",
|
|
35
35
|
"@exodus/assets-base": "^8.1.6",
|
|
36
|
-
"@exodus/assets-feature": "^4.
|
|
36
|
+
"@exodus/assets-feature": "^5.4.0",
|
|
37
37
|
"@exodus/bitcoin-meta": "^1.0.1",
|
|
38
38
|
"@exodus/ethereum-meta": "^1.0.30",
|
|
39
|
-
"@exodus/locale": "^2.
|
|
40
|
-
"@exodus/rates-monitor": "^4.
|
|
41
|
-
"@exodus/redux-dependency-injection": "^3.
|
|
39
|
+
"@exodus/locale": "^2.2.0",
|
|
40
|
+
"@exodus/rates-monitor": "^4.2.0",
|
|
41
|
+
"@exodus/redux-dependency-injection": "^3.1.0",
|
|
42
42
|
"@exodus/storage-memory": "^2.1.1",
|
|
43
43
|
"events": "^3.3.0",
|
|
44
44
|
"redux": "^4.0.0"
|
|
45
45
|
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"debug": ">= 3.0.0"
|
|
48
|
-
},
|
|
49
46
|
"homepage": "https://github.com/ExodusMovement/exodus-hydra/tree/master/features/market-history",
|
|
50
47
|
"bugs": {
|
|
51
48
|
"url": "https://github.com/ExodusMovement/exodus-hydra/issues?q=is%3Aissue+is%3Aopen+label%3Amarket-history"
|
|
@@ -54,5 +51,5 @@
|
|
|
54
51
|
"type": "git",
|
|
55
52
|
"url": "git+https://github.com/ExodusMovement/exodus-hydra.git"
|
|
56
53
|
},
|
|
57
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "9dce273eb7fd5e08e530b0991fba47a2fdc91d5c"
|
|
58
55
|
}
|