@ex-master/core
Advanced tools
Comparing version 0.2.25 to 0.2.26
@@ -32,3 +32,23 @@ import { Decimal } from 'decimal.js'; | ||
} | ||
export interface KLineEntry { | ||
time: number; | ||
high: number; | ||
open: number; | ||
close: number; | ||
low: number; | ||
volume: number; | ||
} | ||
export declare type TradeType = 'buy' | 'sell'; | ||
export interface TradeEntry { | ||
id: string; | ||
type: TradeType; | ||
price: number; | ||
size: number; | ||
time: number; | ||
} | ||
export interface TradeData { | ||
id: string; | ||
time: number; | ||
data: TradeEntry[]; | ||
} | ||
export declare type OrderType = 'bid' | 'ask'; |
{ | ||
"name": "@ex-master/core", | ||
"version": "0.2.25", | ||
"version": "0.2.26", | ||
"main": "bld/library/index.js", | ||
@@ -29,3 +29,3 @@ "types": "bld/library/index.d.ts", | ||
}, | ||
"gitHead": "6d75f101c9e2ea31b38649e6e955ba28b2d6f16f" | ||
"gitHead": "80af01bee4a450c817cb2d51ee008136e795d1c9" | ||
} |
@@ -48,2 +48,11 @@ import {Decimal} from 'decimal.js'; | ||
export interface KLineEntry { | ||
time: number; | ||
high: number; | ||
open: number; | ||
close: number; | ||
low: number; | ||
volume: number; | ||
} | ||
/////////// | ||
@@ -55,2 +64,16 @@ // Order // | ||
export interface TradeEntry { | ||
id: string; | ||
type: TradeType; | ||
price: number; | ||
size: number; | ||
time: number; | ||
} | ||
export interface TradeData { | ||
id: string; | ||
time: number; | ||
data: TradeEntry[]; | ||
} | ||
export type OrderType = 'bid' | 'ask'; |
129403
2682