@qtsurfer/api-client 0.1.0 → 0.1.2
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/LICENSE +1 -1
- package/README.md +8 -0
- package/dist/index.d.ts +811 -3
- package/dist/index.js +142 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/generated/schemas.gen.ts +19 -15
- package/src/generated/sdk.gen.ts +59 -1
- package/src/generated/types.gen.ts +148 -9
- package/dist/generated/client.gen.d.ts +0 -13
- package/dist/generated/client.gen.d.ts.map +0 -1
- package/dist/generated/client.gen.js +0 -6
- package/dist/generated/client.gen.js.map +0 -1
- package/dist/generated/index.d.ts +0 -3
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/index.js +0 -4
- package/dist/generated/index.js.map +0 -1
- package/dist/generated/schemas.gen.d.ts +0 -284
- package/dist/generated/schemas.gen.d.ts.map +0 -1
- package/dist/generated/schemas.gen.js +0 -287
- package/dist/generated/schemas.gen.js.map +0 -1
- package/dist/generated/sdk.gen.d.ts +0 -98
- package/dist/generated/sdk.gen.d.ts.map +0 -1
- package/dist/generated/sdk.gen.js +0 -177
- package/dist/generated/sdk.gen.js.map +0 -1
- package/dist/generated/types.gen.d.ts +0 -534
- package/dist/generated/types.gen.d.ts.map +0 -1
- package/dist/generated/types.gen.js +0 -3
- package/dist/generated/types.gen.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright 2026
|
|
189
|
+
Copyright 2026 Wualabs LTD
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @qtsurfer/api-client
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://github.com/QTSurfer/api-client-ts/actions/workflows/ci.yml"><img src="https://github.com/QTSurfer/api-client-ts/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@qtsurfer/api-client"><img src="https://img.shields.io/npm/v/@qtsurfer/api-client" alt="npm"></a>
|
|
6
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License"></a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
3
9
|
Auto-generated TypeScript API client for the [QTSurfer API](https://github.com/QTSurfer/qtsurfer-api), produced from the OpenAPI 3.1 spec with [`@hey-api/openapi-ts`](https://heyapi.dev/).
|
|
4
10
|
|
|
5
11
|
This package is intentionally thin: one function per operation, 1:1 with the spec. For workflow orchestration (polling, retries, domain objects, unified errors), use [`@qtsurfer/sdk`](https://github.com/QTSurfer/sdk-ts).
|
|
@@ -43,6 +49,8 @@ All operations are exported as standalone functions; every operation accepts an
|
|
|
43
49
|
| -------- | ------ | ---- | ------- |
|
|
44
50
|
| `getExchanges` | GET | `/exchanges` | List available exchanges |
|
|
45
51
|
| `getInstruments` | GET | `/exchange/{exchangeId}/instruments` | List instruments for an exchange |
|
|
52
|
+
| `getExchangeTickersHour` | GET | `/exchange/{exchangeId}/tickers/{base}/{quote}` | Download one hour of tickers as Lastra/Parquet |
|
|
53
|
+
| `getExchangeKlinesHour` | GET | `/exchange/{exchangeId}/klines/{base}/{quote}` | Download one hour of klines as Lastra/Parquet |
|
|
46
54
|
| `postStrategy` | POST | `/strategy` | Compile a strategy |
|
|
47
55
|
| `getStrategyStatus` | GET | `/strategy/{strategyId}` | Poll strategy compilation status |
|
|
48
56
|
| `prepareBacktesting` | POST | `/backtesting/prepare` | Start a data preparation job |
|