@tribulnation/terminal 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/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/types.gen.d.ts +5 -0
- package/package.json +2 -3
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WebSocketLike } from './livestream.js';
|
|
2
2
|
/** The package version, sent in the user agent. */
|
|
3
|
-
export declare const VERSION = "0.1.
|
|
3
|
+
export declare const VERSION = "0.1.2";
|
|
4
4
|
/** The API host when none is given and `TN_API_BASE` is unset. */
|
|
5
5
|
export declare const DEFAULT_BASE_URL = "https://api.tribulnation.com";
|
|
6
6
|
/** Portfolio reads recompute a window and can take tens of seconds. */
|
package/dist/client.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { apiErrorFrom, NetworkError, NotLoggedIn, Redirected, TerminalError } from "./errors.js";
|
|
7
7
|
/** The package version, sent in the user agent. */
|
|
8
|
-
export const VERSION = '0.1.
|
|
8
|
+
export const VERSION = '0.1.2';
|
|
9
9
|
/** The API host when none is given and `TN_API_BASE` is unset. */
|
|
10
10
|
export const DEFAULT_BASE_URL = 'https://api.tribulnation.com';
|
|
11
11
|
/** Portfolio reads recompute a window and can take tens of seconds. */
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -2771,6 +2771,11 @@ export type FundingRow = {
|
|
|
2771
2771
|
};
|
|
2772
2772
|
/** The pair's place among its asset's pairs on the page: 0 its best, 1.. its other hedges; absent from an answer built before. */
|
|
2773
2773
|
hedge?: number | null;
|
|
2774
|
+
/** The edge of entering the side the pair's live row faces now (its `entry_bps`), with that side; `breakeven_days` credits it when the pair faces that side. Absent: no live entry (the round trip is paid back). */
|
|
2775
|
+
entry?: {
|
|
2776
|
+
long: 'a' | 'b';
|
|
2777
|
+
bps: number;
|
|
2778
|
+
} | null;
|
|
2774
2779
|
};
|
|
2775
2780
|
export type FundingLeg = {
|
|
2776
2781
|
/** Exchange */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tribulnation/terminal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Typed client for the Tribulnation Terminal API: your portfolio (/me), market data (/v1, /v2) and the live socket. Read-only, zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -42,8 +42,7 @@
|
|
|
42
42
|
"url": "https://github.com/tribulnation/terminal/issues"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
|
-
"access": "public"
|
|
46
|
-
"provenance": true
|
|
45
|
+
"access": "public"
|
|
47
46
|
},
|
|
48
47
|
"scripts": {
|
|
49
48
|
"build": "tsc -p tsconfig.build.json && node scripts/dts-extensions.mjs",
|