
  
import * as _lib from "./pkg_wasm";

const _qpToInternalCtx = (ctx) => {
    const sym = ctx.sym.toJSON();
    const bars = ctx.ohlcv.bars.map(r => r.toJSON());
    
    const internalSym = _lib.Sym.fromJSON(sym);
    const internalOhlcv = _lib.Ohlcv.fromBars(bars.map(r => _lib.OhlcvBar.fromJSON(r)));
    const internalCtx = new _lib.Ctx(internalOhlcv, internalSym);

    return internalCtx;
}

  
  
 /* module.exports = {
      
  }*/
          