@tickerall/sdk 0.1.3 → 0.1.5
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/index.d.mts +23 -0
- package/dist/index.d.ts +23 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -46,6 +46,16 @@ interface AccountInfo {
|
|
|
46
46
|
brokerWebsite?: string;
|
|
47
47
|
supportEmail?: string;
|
|
48
48
|
metaQuotesId?: string;
|
|
49
|
+
/** Account currency (e.g. "USD"). */
|
|
50
|
+
currency?: string;
|
|
51
|
+
/** Balance + floating P/L of open positions. */
|
|
52
|
+
equity?: number;
|
|
53
|
+
/** Margin currently used by open positions; 0 when flat. */
|
|
54
|
+
margin?: number;
|
|
55
|
+
/** Equity minus used margin. */
|
|
56
|
+
freeMargin?: number;
|
|
57
|
+
/** equity / margin * 100; null when no margin is in use. */
|
|
58
|
+
marginLevel?: number | null;
|
|
49
59
|
}
|
|
50
60
|
interface Position {
|
|
51
61
|
ticket: number;
|
|
@@ -104,6 +114,19 @@ interface SymbolSpec {
|
|
|
104
114
|
specSource: 'broker' | 'derived';
|
|
105
115
|
tradeMode?: number;
|
|
106
116
|
tradeModeSource?: 'broker' | 'derived';
|
|
117
|
+
/** Decimal digits in price quotes. */
|
|
118
|
+
digits?: number;
|
|
119
|
+
/** Smallest price unit (= 10^-digits). */
|
|
120
|
+
point?: number;
|
|
121
|
+
/** Smallest price increment — mirror of `point`, named for risk math. */
|
|
122
|
+
tickSize?: number;
|
|
123
|
+
/** Units of base currency per 1.00 lot. */
|
|
124
|
+
contractSize?: number;
|
|
125
|
+
/** Profit-currency value of a one-point move on a 1.00-lot position
|
|
126
|
+
* (= contractSize × point). Compute risk/exposure as
|
|
127
|
+
* `|entry - stop| / tickSize * tickValue * lots`. Undefined when the broker
|
|
128
|
+
* record didn't yield a positive value. */
|
|
129
|
+
tickValue?: number;
|
|
107
130
|
}
|
|
108
131
|
interface SymbolSpecsResponse {
|
|
109
132
|
specs: SymbolSpec[];
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,16 @@ interface AccountInfo {
|
|
|
46
46
|
brokerWebsite?: string;
|
|
47
47
|
supportEmail?: string;
|
|
48
48
|
metaQuotesId?: string;
|
|
49
|
+
/** Account currency (e.g. "USD"). */
|
|
50
|
+
currency?: string;
|
|
51
|
+
/** Balance + floating P/L of open positions. */
|
|
52
|
+
equity?: number;
|
|
53
|
+
/** Margin currently used by open positions; 0 when flat. */
|
|
54
|
+
margin?: number;
|
|
55
|
+
/** Equity minus used margin. */
|
|
56
|
+
freeMargin?: number;
|
|
57
|
+
/** equity / margin * 100; null when no margin is in use. */
|
|
58
|
+
marginLevel?: number | null;
|
|
49
59
|
}
|
|
50
60
|
interface Position {
|
|
51
61
|
ticket: number;
|
|
@@ -104,6 +114,19 @@ interface SymbolSpec {
|
|
|
104
114
|
specSource: 'broker' | 'derived';
|
|
105
115
|
tradeMode?: number;
|
|
106
116
|
tradeModeSource?: 'broker' | 'derived';
|
|
117
|
+
/** Decimal digits in price quotes. */
|
|
118
|
+
digits?: number;
|
|
119
|
+
/** Smallest price unit (= 10^-digits). */
|
|
120
|
+
point?: number;
|
|
121
|
+
/** Smallest price increment — mirror of `point`, named for risk math. */
|
|
122
|
+
tickSize?: number;
|
|
123
|
+
/** Units of base currency per 1.00 lot. */
|
|
124
|
+
contractSize?: number;
|
|
125
|
+
/** Profit-currency value of a one-point move on a 1.00-lot position
|
|
126
|
+
* (= contractSize × point). Compute risk/exposure as
|
|
127
|
+
* `|entry - stop| / tickSize * tickValue * lots`. Undefined when the broker
|
|
128
|
+
* record didn't yield a positive value. */
|
|
129
|
+
tickValue?: number;
|
|
107
130
|
}
|
|
108
131
|
interface SymbolSpecsResponse {
|
|
109
132
|
specs: SymbolSpec[];
|