@aetherwealth/sdk 0.1.32 → 0.1.34
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/dist/resources/trades.js +2 -1
- package/dist/types.d.ts +4 -1
- package/package.json +1 -1
package/dist/resources/trades.js
CHANGED
|
@@ -96,7 +96,8 @@ export function createTradesResource(client) {
|
|
|
96
96
|
async delete(tradeId) {
|
|
97
97
|
if (!tradeId)
|
|
98
98
|
throw new Error('trades.delete: tradeId is required');
|
|
99
|
-
//
|
|
99
|
+
// Backend policy only allows deleting trades on demo accounts.
|
|
100
|
+
// A live-account trade delete returns AetherForbiddenError upstream.
|
|
100
101
|
await client.request('/api/public/v1/trades/delete', {
|
|
101
102
|
method: 'POST',
|
|
102
103
|
body: { id: tradeId }
|
package/dist/types.d.ts
CHANGED
|
@@ -147,7 +147,10 @@ export interface TradesResource {
|
|
|
147
147
|
create(input: CreateTradeInput, opts?: IdempotencyOptions): Promise<Trade>;
|
|
148
148
|
update(tradeId: string, input: UpdateTradeInput): Promise<Trade>;
|
|
149
149
|
close(tradeId: string, input: CloseTradeInput): Promise<Trade>;
|
|
150
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* Resolves on success. Only demo-account trades can be deleted; live-account
|
|
152
|
+
* deletes throw `AetherForbiddenError`.
|
|
153
|
+
*/
|
|
151
154
|
delete(tradeId: string): Promise<void>;
|
|
152
155
|
/**
|
|
153
156
|
* Async-iterate every page of the trade list, auto-advancing `page` until
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aetherwealth/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"description": "Official Aether Wealth SDK: a typed TypeScript client for the Aether Wealth public API — trades, accounts, analytics, alerts, market data, macro calendar, and diary.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|