@mywebapi.com/sdk 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/README.md +21 -3
- package/package.json +26 -4
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @mywebapi.com/sdk
|
|
2
2
|
|
|
3
|
-
TypeScript client for the
|
|
3
|
+
TypeScript client for the CPlugin WebAPI v2 — a management API for trading-platform servers.
|
|
4
4
|
|
|
5
|
-
**Status:**
|
|
5
|
+
**Status:** Published on the public npm registry as [`@mywebapi.com/sdk`](https://www.npmjs.com/package/@mywebapi.com/sdk) (early access, current version `0.1.2`). The API shape is stable; while the package is at `0.x`, minor releases may introduce breaking changes, so pin a version in production. Versioning follows [semver](https://semver.org/).
|
|
6
6
|
|
|
7
7
|
- **Auto-generated types** from the live OpenAPI spec — all endpoints, DTOs, and enums are exact and stay in sync with the server.
|
|
8
8
|
- **Unified entry point** — `CPluginWebApiClient` with `mt4` and `mt5` namespaces; credentials and token management configured once at instantiation.
|
|
@@ -245,7 +245,25 @@ MT4 hubs expose ticks, trades, margin-call, user and symbol streams; MT5 hubs ex
|
|
|
245
245
|
## What's next
|
|
246
246
|
|
|
247
247
|
- Add typed convenience wrappers for every v2 endpoint as usage patterns crystallise.
|
|
248
|
-
-
|
|
248
|
+
- Progress toward a stable `1.0.0` once the v2 API reaches production maturity.
|
|
249
|
+
|
|
250
|
+
New versions are cut by tagging a release (`vX.Y.Z`), which publishes `@mywebapi.com/sdk` to npm via the GitHub Actions workflow — see [PUBLISHING.md](./PUBLISHING.md).
|
|
251
|
+
|
|
252
|
+
## Contributing
|
|
253
|
+
|
|
254
|
+
Contributions are welcome — see [CONTRIBUTING.md](./CONTRIBUTING.md) for the development setup, the generated-code workflow, and PR guidelines.
|
|
255
|
+
|
|
256
|
+
## Security
|
|
257
|
+
|
|
258
|
+
To report a security vulnerability, please follow the responsible-disclosure process in [SECURITY.md](./SECURITY.md). Do not open public issues for security reports.
|
|
259
|
+
|
|
260
|
+
## Trademarks
|
|
261
|
+
|
|
262
|
+
MetaTrader, MT4, MT5, and MetaQuotes are trademarks or registered trademarks of MetaQuotes Ltd.
|
|
263
|
+
This project is an independent, community-oriented SDK for the WebAPI service.
|
|
264
|
+
It is **not affiliated with, endorsed by, or sponsored by MetaQuotes Ltd.**
|
|
265
|
+
|
|
266
|
+
All other trademarks are the property of their respective owners.
|
|
249
267
|
|
|
250
268
|
## License
|
|
251
269
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mywebapi.com/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "TypeScript
|
|
5
|
+
"description": "Typed TypeScript SDK for the CPlugin WebAPI v2 — manage trading-platform servers from Node.js and browsers. OAuth2, retries, pagination and SignalR real-time included; types regenerated from the OpenAPI spec so they never drift.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
"types": "./dist/index.d.ts"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
16
20
|
"publishConfig": {
|
|
17
21
|
"access": "public"
|
|
18
22
|
},
|
|
@@ -20,7 +24,23 @@
|
|
|
20
24
|
"type": "git",
|
|
21
25
|
"url": "git+https://github.com/CPlugin/mywebapi.com-sdk-js.git"
|
|
22
26
|
},
|
|
23
|
-
"homepage": "https://github.
|
|
27
|
+
"homepage": "https://cplugin.github.io/mywebapi.com-sdk-js/",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"cplugin",
|
|
30
|
+
"webapi",
|
|
31
|
+
"trading",
|
|
32
|
+
"trading-platform",
|
|
33
|
+
"broker",
|
|
34
|
+
"forex",
|
|
35
|
+
"sdk",
|
|
36
|
+
"typescript",
|
|
37
|
+
"api-client",
|
|
38
|
+
"rest-api",
|
|
39
|
+
"openapi",
|
|
40
|
+
"signalr",
|
|
41
|
+
"real-time",
|
|
42
|
+
"oauth2"
|
|
43
|
+
],
|
|
24
44
|
"bugs": {
|
|
25
45
|
"url": "https://github.com/CPlugin/mywebapi.com-sdk-js/issues"
|
|
26
46
|
},
|
|
@@ -29,6 +49,7 @@
|
|
|
29
49
|
"build": "rm -rf dist && bun build src/index.ts --outdir dist --target browser --format esm && tsc -p tsconfig.build.json --emitDeclarationOnly --declaration",
|
|
30
50
|
"test": "bun test",
|
|
31
51
|
"test:e2e": "WEBAPI_E2E=1 bun test e2e",
|
|
52
|
+
"docs": "typedoc",
|
|
32
53
|
"typecheck": "tsc --noEmit"
|
|
33
54
|
},
|
|
34
55
|
"peerDependencies": {
|
|
@@ -43,6 +64,7 @@
|
|
|
43
64
|
"@microsoft/signalr": "^10.0.0",
|
|
44
65
|
"@types/bun": "latest",
|
|
45
66
|
"orval": "8.19.0",
|
|
67
|
+
"typedoc": "^0.28.19",
|
|
46
68
|
"typescript": "^5.4.0"
|
|
47
69
|
},
|
|
48
70
|
"engines": {
|