Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
APEX
✓ const { APEX } = require('alphapoint')
✗ import { APEX } from 'alphapoint'
CommonJS require is the documented pattern; ES imports may not work directly depending on bundler.
APEX
✓ import APEX from 'alphapoint'
Default ES import works in some setups; named import as documented may be preferred.
APEX
✓ const APEX = require('alphapoint').APEX
✗ const alphapoint = require('alphapoint'); const a = new alphapoint.APEX()
Destructuring is clearer.
Creates an APEX client, fetches L2 snapshot data using GetL2Snapshot method.
const { APEX } = require('alphapoint');
const apex = new APEX('wss://api_apexqa.alphapoint.com/WSGateway/');
async function main() {
try {
const l2 = await apex.GetL2Snapshot({OMSId: 1, InstrumentId: 2, Depth: 100});
console.log(l2);
} catch (e) {
console.error(e);
}
}
main();
Errors
Common errors & fixes
Cannot find module 'alphapoint'
Package not installed; requires .npmrc configuration to access private registry.
fixSet up .npmrc with correct token and run 'npm install'.
TypeError: apex.GetL2Snapshot is not a function
Incorrect import or wrong version; ensure you have required { APEX } and instantiated correctly.
fixUse: const { APEX } = require('alphapoint'); apex = new APEX(url); Audit
Dependencies
rxjsrequiredUsed for observable patterns for events
wsoptionalWebSocket implementation for Node.js