@apiance/js-primitives
v5.0.0
Published
A set of commons primitives used in the Apiance stack. See apiance.io
Downloads
8
Readme
Primitives
This repository holds all the primitives needed to help with the data format used by the Apiance API.
Asset
import { Asset } from '@apiance/primitives';
const asset = new Asset({
name: 'Bitcoin',
isoCode: 'BTC'
});
Candle
import { Candle } from '@apiance/primitives';
const candle = new Candle({
market: "KRAKEN::BTC-USD",
interval: '1d',
openTime: '2020-08-02T00:00:00.142Z',
closeTime: '2020-08-02T00:59:59.999Z',
open: '10000',
close: '10100',
high: '10111',
low: '10000',
volume: { base:'0.01', quote: '100' },
trades: 60
});
CandleSet
import { CandleSet } from '@apiance/primitives';
Command
import { Command } from '@apiance/primitives';
Epoch
import { Epoch } from '@apiance/primitives';
EventMessage
import { EventMessage } from '@apiance/primitives';
Exchange
import { Exchange } from '@apiance/primitives';
Instrument
import { Instrument } from '@apiance/primitives';
KeyChain
import { KeyChain } from '@apiance/primitives';
Keys
import { Keys } from '@apiance/primitives';
Location
import { Location } from '@apiance/primitives';
Market
import { Market } from '@apiance/primitives';
Organization
import { Organization } from '@apiance/primitives';
Person
import { Person } from '@apiance/primitives';
Persona
import { Persona } from '@apiance/primitives';
Queue
import { Queue } from '@apiance/primitives';
SocketMessage
import { SocketMessage } from '@apiance/primitives';
Tick
import { Tick } from '@apiance/primitives';
Ticker
import { Ticker } from '@apiance/primitives';
Trade
import { Trade } from '@apiance/primitives';
ZCandle
import { ZCandle } from '@apiance/primitives';
ZTrade
import { ZTrade } from '@apiance/primitives';