@tigeropenapi/tigeropen 0.5.5 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/cjs/auth/authentication.js +74 -0
- package/dist/cjs/auth/index.js +24 -0
- package/dist/cjs/auth/oauth2/client-registration.js +44 -0
- package/dist/cjs/auth/oauth2/device-authorization.js +40 -0
- package/dist/cjs/auth/oauth2/errors.js +64 -0
- package/dist/cjs/auth/oauth2/http-utils.js +112 -0
- package/dist/cjs/auth/oauth2/index.js +42 -0
- package/dist/cjs/auth/oauth2/loopback-receiver.js +215 -0
- package/dist/cjs/auth/oauth2/metadata.js +34 -0
- package/dist/cjs/auth/oauth2/oauth2-authentication.js +74 -0
- package/dist/cjs/auth/oauth2/session-manager.js +762 -0
- package/dist/cjs/auth/oauth2/token-store.js +252 -0
- package/dist/cjs/auth/oauth2/token.js +76 -0
- package/dist/cjs/push/pb/Request.js +12 -1
- package/dist/cjs/push/proto-message.js +5 -1
- package/dist/cjs/push/push-client.js +29 -13
- package/dist/cjs/trade/trade-client.js +12 -3
- package/dist/cjs/version.js +1 -1
- package/dist/esm/auth/authentication.js +68 -0
- package/dist/esm/auth/index.js +3 -0
- package/dist/esm/auth/oauth2/client-registration.js +40 -0
- package/dist/esm/auth/oauth2/device-authorization.js +36 -0
- package/dist/esm/auth/oauth2/errors.js +59 -0
- package/dist/esm/auth/oauth2/http-utils.js +105 -0
- package/dist/esm/auth/oauth2/index.js +11 -0
- package/dist/esm/auth/oauth2/loopback-receiver.js +178 -0
- package/dist/esm/auth/oauth2/metadata.js +30 -0
- package/dist/esm/auth/oauth2/oauth2-authentication.js +70 -0
- package/dist/esm/auth/oauth2/session-manager.js +725 -0
- package/dist/esm/auth/oauth2/token-store.js +214 -0
- package/dist/esm/auth/oauth2/token.js +71 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/push/pb/Request.js +12 -1
- package/dist/esm/push/proto-message.js +5 -1
- package/dist/esm/push/push-client.js +29 -13
- package/dist/esm/trade/trade-client.js +12 -3
- package/dist/esm/version.js +1 -1
- package/dist/types/auth/authentication.d.ts +98 -0
- package/dist/types/auth/index.d.ts +4 -0
- package/dist/types/auth/oauth2/client-registration.d.ts +32 -0
- package/dist/types/auth/oauth2/device-authorization.d.ts +40 -0
- package/dist/types/auth/oauth2/errors.d.ts +46 -0
- package/dist/types/auth/oauth2/http-utils.d.ts +21 -0
- package/dist/types/auth/oauth2/index.d.ts +16 -0
- package/dist/types/auth/oauth2/loopback-receiver.d.ts +29 -0
- package/dist/types/auth/oauth2/metadata.d.ts +32 -0
- package/dist/types/auth/oauth2/oauth2-authentication.d.ts +31 -0
- package/dist/types/auth/oauth2/session-manager.d.ts +241 -0
- package/dist/types/auth/oauth2/token-store.d.ts +49 -0
- package/dist/types/auth/oauth2/token.d.ts +56 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/quote.d.ts +1 -0
- package/dist/types/model/trade-requests.d.ts +5 -0
- package/dist/types/push/index.d.ts +1 -1
- package/dist/types/push/pb/Request.d.ts +1 -0
- package/dist/types/push/proto-message.d.ts +4 -1
- package/dist/types/push/push-client.d.ts +33 -0
- package/dist/types/trade/trade-client.d.ts +12 -3
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -4
|
@@ -106,9 +106,15 @@ export declare class TradeClient {
|
|
|
106
106
|
getOrderTransactions(req: OrderTransactionsRequest): Promise<Transaction[]>;
|
|
107
107
|
/** Query positions. v0.4.0: supports Symbol / SecType / Currency / Market filters. */
|
|
108
108
|
getPositions(req?: PositionsRequest): Promise<Position[]>;
|
|
109
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Query assets. v0.4.0: supports sub-account list and aggregation options.
|
|
111
|
+
* `assetQuoteType`(ETH / RTH / OVERNIGHT) 选择资产行情口径。
|
|
112
|
+
*/
|
|
110
113
|
getAssets(req?: AssetsRequest): Promise<Asset[]>;
|
|
111
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* Query prime assets. v0.4.0: takes AssetsRequest for filters.
|
|
116
|
+
* `assetQuoteType`(ETH / RTH / OVERNIGHT) 选择资产行情口径。
|
|
117
|
+
*/
|
|
112
118
|
getPrimeAssets(req?: AssetsRequest): Promise<PrimeAsset | undefined>;
|
|
113
119
|
/** Query managed sub-accounts (institutional). */
|
|
114
120
|
getManagedAccounts(req?: ManagedAccountsRequest): Promise<ManagedAccount[]>;
|
|
@@ -119,7 +125,10 @@ export declare class TradeClient {
|
|
|
119
125
|
getDerivativeContracts(req: DerivativeContractsRequest): Promise<Contract[]>;
|
|
120
126
|
/** Daily P&L / net-value / holding-value analytics. */
|
|
121
127
|
getAnalyticsAsset(req: AnalyticsAssetRequest): Promise<AnalyticsAsset[]>;
|
|
122
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* Aggregate assets (prime) by base currency.
|
|
130
|
+
* `assetQuoteType`(ETH / RTH / OVERNIGHT) 选择资产行情口径。
|
|
131
|
+
*/
|
|
123
132
|
getAggregateAssets(req?: AggregateAssetsRequest): Promise<AggregateAssets | undefined>;
|
|
124
133
|
/** Estimate tradable quantity given order parameters. */
|
|
125
134
|
getEstimateTradableQuantity(req: EstimateTradableQuantityRequest): Promise<EstimateTradableQuantity | undefined>;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.7";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tigeropenapi/tigeropen",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "Tiger Brokers OpenAPI TypeScript SDK for market data, trading, and real-time push",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"url": "https://github.com/tigerfintech/openapi-typescript-sdk/issues"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && node scripts/fix-esm-imports.mjs",
|
|
28
|
-
"build:esm": "tsc -p tsconfig.json",
|
|
27
|
+
"build": "node scripts/sync-version.mjs && tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && node scripts/fix-esm-imports.mjs",
|
|
28
|
+
"build:esm": "tsc -p tsconfig.json && node scripts/fix-esm-imports.mjs",
|
|
29
29
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
30
30
|
"prepublishOnly": "npm run build",
|
|
31
31
|
"publish:all": "npm run build && npm publish --registry https://registry.npmjs.org --access public && npm pkg set name=tigeropen && npm publish --registry https://registry.npmjs.org && npm pkg set name=@tigeropenapi/tigeropen",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"test:unit": "vitest run --config vitest.config.ts",
|
|
34
34
|
"test:integ": "TIGER_RUN_INTEG=true vitest run --config vitest.integ.config.ts",
|
|
35
35
|
"test:watch": "vitest",
|
|
36
|
+
"sync-version": "node scripts/sync-version.mjs",
|
|
36
37
|
"clean": "rm -rf dist",
|
|
37
38
|
"proto:generate": "protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./src/push/pb --ts_proto_opt=esModuleInterop=true,outputEncodeMethods=true,outputJsonMethods=false,outputClientImpl=false -I=./proto ./proto/*.proto"
|
|
38
39
|
},
|
|
@@ -58,5 +59,6 @@
|
|
|
58
59
|
},
|
|
59
60
|
"dependencies": {
|
|
60
61
|
"@bufbuild/protobuf": "^2.12.0"
|
|
61
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"gitHead": "3655981845c4255e6b9f48d629e874dc3b0b699b"
|
|
62
64
|
}
|