USD marks
This commit is contained in:
5
cache.js
5
cache.js
@@ -37,6 +37,10 @@ export class CacheDict {
|
||||
async contains(chain, key) {
|
||||
return await redis.hExists(`${chain}|${this.series}`, key)
|
||||
}
|
||||
|
||||
async items(chain) {
|
||||
return Object.entries(await redis.hGetAll(`${chain}|${this.series}`)).map(([k, v]) => [k, v === null ? null : '' + v])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -83,3 +87,4 @@ export const vaultOpenOrders = new CacheDict('voo')
|
||||
export const vaultRecentlyClosedOrders = new CacheDict('vrco')
|
||||
export const orderFilled = new CacheDict('of')
|
||||
export const ohlcs = new CacheDict('ohlc')
|
||||
export const marks = new CacheDict('mark.usd')
|
||||
|
||||
Reference in New Issue
Block a user