MCPcopy Create free account
hub / github.com/ccxt/ccxt / assertRoundMinuteTimestamp

Function assertRoundMinuteTimestamp

ts/src/test/Exchange/base/test.sharedMethods.ts:607–614  ·  view source on GitHub ↗
(exchange: Exchange, skippedProperties: object, method: string, entry: any[] | object, key: string | number)

Source from the content-addressed store, hash-verified

605}
606
607function assertRoundMinuteTimestamp (exchange: Exchange, skippedProperties: object, method: string, entry: any[] | object, key: string | number) {
608 if (key in skippedProperties) {
609 return;
610 }
611 const logText = logTemplate (exchange, method, entry);
612 const ts = exchange.safeString (entry, key);
613 assert (Precise.stringMod (ts, '60000') === '0', 'timestamp should be a multiple of 60 seconds (1 minute)' + logText);
614}
615
616function deepEqual (exchange: Exchange, a: any, b: any) {
617 return exchange.jsonStringifyWithNull (a) === exchange.jsonStringifyWithNull (b);

Callers

nothing calls this directly

Calls 4

logTemplateFunction · 0.70
assertFunction · 0.50
safeStringMethod · 0.45
stringModMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…