tiger-openapi
v0.1.3
Published
Tiger OpenAPI SDK for Node.js and browsers.
Readme
tiger-openapi · 
TypeScript monorepo for building a Tiger OpenAPI SDK across multiple runtimes and deployment environments.
The repository currently exposes one public package with a browser subpath export:
tiger-openapitiger-openapi/browser
It also supports multiple runtime targets at the architecture level:
[!IMPORTANT]
This is not the official NodeJS SDK, and currently it's still under development.If any bug, please open an issue
Installation
# via pnpm
pnpm add tiger-openapi
# via npm
npm i tiger-openapi
# via yarn
yarn add tiger-openapior
# via pnpm
pnpm add tiger-openapi
# via npm
npm i tiger-openapi
# via yarn
yarn add tiger-openapiQuick Start
Node.js
import { TigerClient, createTigerClient } from 'tiger-openapi';
// apply in tiger openapi page
const tiger = new TigerClient({
tigerId: '...',
account: '...',
privateKey: '-...',
});
// or
const tiger = createTigerClient({
tigerId: '...',
account: '...',
privateKey: '-...',
});Browser
import { TigerClient, createTigerClient } from 'tiger-openapi/browser';
// apply in tiger openapi page
const tiger = new TigerClient({
tigerId: '...',
account: '...',
privateKey: '-...',
});
// or
const tiger = createTigerClient({
tigerId: '...',
account: '...',
privateKey: '-...',
});API Overview
Quote
Common
For more details please check the API document.
await tiger.quote.common.grabQuotePermission();
await tiger.quote.common.getQuotePermission();
await tiger.quote.common.getKlineQuote({
/* */
});Crypto
This is still development.
Funds
This is still development.
Futures
This is still development.
Options
Please ensure you have permission to enable query options before you call the API.
await tiger.quote.options.getOptionExpirations({
/* */
});
await tiger.quote.options.getOptionBriefs({
/* */
});For more details about Options, please check the document.
Stock
Please ensure you have permission to enable query stock before you call the API.
await tiger.quote.stock.getMarketStatus({
/* */
});
await tiger.quote.stock.getTradingCalendar({
/* */
});For more details please check the API document about stock.
Warrants
This is still development.
Accounts
This is still development.
Trading
This is still development.
Stream
This is still development.
