MCPcopy
hub / github.com/ccxt/ccxt / findTimeframe

Method findTimeframe

java/lib/src/main/java/io/github/ccxt/Exchange.java:4289–4306  ·  view source on GitHub ↗
(Object timeframe, Object... optionalArgs)

Source from the content-addressed store, hash-verified

4287 }
4288
4289 public Object findTimeframe(Object timeframe, Object... optionalArgs)
4290 {
4291 Object timeframes = Helpers.getArg(optionalArgs, 0, null);
4292 if (Helpers.isTrue(Helpers.isEqual(timeframes, null)))
4293 {
4294 timeframes = this.timeframes;
4295 }
4296 Object keys = Helpers.objectKeys(timeframes);
4297 for (var i = 0; Helpers.isLessThan(i, Helpers.getArrayLength(keys)); i++)
4298 {
4299 Object key = Helpers.GetValue(keys, i);
4300 if (Helpers.isTrue(Helpers.isEqual(Helpers.GetValue(timeframes, key), timeframe)))
4301 {
4302 return key;
4303 }
4304 }
4305 return null;
4306 }
4307
4308 public Object checkProxyUrlSettings(Object... optionalArgs)
4309 {

Callers

nothing calls this directly

Calls 7

getArgMethod · 0.95
isTrueMethod · 0.95
isEqualMethod · 0.95
objectKeysMethod · 0.95
isLessThanMethod · 0.95
getArrayLengthMethod · 0.95
GetValueMethod · 0.95

Tested by

no test coverage detected