Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './modules';
export * from './util';
19 changes: 19 additions & 0 deletions lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lib/modules/base.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export declare class Base {
config: any;
constructor(apiKey: string, apiSecret: string);
publicRequest(method: string, path: string, paramsObj?: any): any;
signRequest(method: string, path: string, paramsObj?: any): any;
}
82 changes: 82 additions & 0 deletions lib/modules/base.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions lib/modules/common.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Market } from './market';
export declare class Common extends Market {
/**
* Test Connectivity
*/
ping(): any;
/**
* Check Server Time
*/
time(): any;
}
22 changes: 22 additions & 0 deletions lib/modules/common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lib/modules/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './common';
export * from './base';
export * from './market';
export * from './userData';
export * from './spot';
export * from './trade';
23 changes: 23 additions & 0 deletions lib/modules/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

99 changes: 99 additions & 0 deletions lib/modules/market.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import { Base } from './base';
export declare class Market extends Base {
/**
* Exchange Information
*
* @param options
* ```
* [options.symbol] - symbol(optional) ex: BTCUSDT.
* [options.symbols] - for mutiple symbols, add comma for each symbol in string. ex: BTCUSDT,BNBBTC .
*```
* @returns
*/
exchangeInfo(options?: any): any;
/**
* Order Book
*
* @param symbol
* @param options
* ```
* [options.limit] - Default 100; max 5000. Valid limits:[5, 10, 20, 50, 100, 500, 1000, 5000].
* ```
* @returns
*/
depth(symbol: string, options?: any): any;
/**
* Recent Trades List
*
* @param symbol
* @param options
* ```
* [options.limit] -limit(optional) Default 500; max 1000. ex: 500.
* ```
* @returns
*/
trades(symbol: string, options?: any): any;
/**
* Old Trade Lookup
*
* @param symbol
* @param options
* ```
* [options.limit] -limit(optional) Default 500; max 1000. ex:500.
* ```
* @returns
*/
historicalTrades(symbol: string, options?: any): any;
/**
* Compressed/Aggregate Trades List
*
* Note: If sending startTime and endTime, the interval must be less than one hour
* @param symbol
* @param options
* ```
* [options.fromId] - id to get aggregate trades from INCLUSIVE.
* [options.startTime] - Timestamp in ms to get aggregate trades from INCLUSIVE.
* [options.endTime] - Timestamp in ms to get aggregate trades until INCLUSIVE.
* [options.limit] - Default 500; max 1000. ex:500
* ```
* @returns
*/
aggTrades(symbol: string, options?: any): any;
/**
* Kline/Candlestick Data
*
* @param symbol
* @param interval
* @param options
* ```
* [options.startTime]
* [options.endTime]
* [options.limit] -Default 500; max 1000. ex: 500
* ```
* @returns
*/
klines(symbol: string, interval: string, options?: any): any;
/**
* Current Average Price
*
* @param symbol
*/
avgPrice(symbol: string): any;
/**
* 24hr Ticker Price Change Statistics
*
* @param symbol
*/
ticker24hr(symbol?: string): any;
/**
* Symbol Price Ticker
*
* @param symbol
*/
tickerPrice(symbol?: string): any;
/**
* Symbol Order Book Ticker
* @param symbol
*/
bookTicker(symbol?: string): any;
}
Loading