@pro303/markets-connector
v0.0.11
Published
Crypto market rest connectors for my projects
Readme
Crypto markets API connectors. Result data comes through common interface and final data have a unified presentation.
getKline (symbol: string, interval: binanceKlineTimeIntervalsT, startTime: number, limit: number = 1000): Promise
Result:
{
result: 0 | 1,
msg?: string,
result: {
weight: number,
data: {
t: number, // time in ms
o: string, // open price
c: string, // close price
l: string, // low price
h: string, // high pricec
v: string, // volume
}[]
}
}