@gbozee/ultimate 0.0.2-155 → 0.0.2-157
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/frontend-index.d.ts +1 -0
- package/dist/frontend-index.js +4 -2
- package/dist/index.cjs +3057 -39
- package/dist/index.d.ts +10 -1
- package/dist/index.js +3057 -39
- package/dist/mcp-server.cjs +3057 -39
- package/dist/mcp-server.js +3057 -39
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1498,6 +1498,7 @@ export declare function getRiskReward(payload: {
|
|
|
1498
1498
|
risk: number;
|
|
1499
1499
|
global_config: GlobalConfig;
|
|
1500
1500
|
force_exact_risk?: boolean;
|
|
1501
|
+
target_loss?: number;
|
|
1501
1502
|
}): any;
|
|
1502
1503
|
export declare function computeProfitDetail(payload: {
|
|
1503
1504
|
focus_position: {
|
|
@@ -2014,6 +2015,7 @@ declare class ExchangePosition {
|
|
|
2014
2015
|
neg_pnl: any;
|
|
2015
2016
|
entry: any;
|
|
2016
2017
|
}>;
|
|
2018
|
+
get appConfig(): AppConfig;
|
|
2017
2019
|
}
|
|
2018
2020
|
declare class ExchangeAccount$1 {
|
|
2019
2021
|
instance: {
|
|
@@ -2025,6 +2027,7 @@ declare class ExchangeAccount$1 {
|
|
|
2025
2027
|
private app_db;
|
|
2026
2028
|
long_position?: ExchangePosition;
|
|
2027
2029
|
short_position?: ExchangePosition;
|
|
2030
|
+
raw_positions?: PositionsView[];
|
|
2028
2031
|
constructor(payload: ExchangeType, options: {
|
|
2029
2032
|
exchange: BaseExchange;
|
|
2030
2033
|
app_db: AppDatabase;
|
|
@@ -2784,10 +2787,16 @@ declare class App {
|
|
|
2784
2787
|
getNonEssentialSymbols(): Promise<Set<any>>;
|
|
2785
2788
|
refreshAllPositionsWithSymbol(payload: {
|
|
2786
2789
|
symbol: string;
|
|
2790
|
+
callback?: (payload: {
|
|
2791
|
+
symbol: string;
|
|
2792
|
+
account: ExchangeType;
|
|
2793
|
+
}) => Promise<any>;
|
|
2787
2794
|
}): Promise<void>;
|
|
2788
2795
|
autoFollowPositions(): Promise<void>;
|
|
2789
2796
|
getMoverExchangeInstances(): Promise<ExchangeAccount[]>;
|
|
2790
|
-
updateTpOnAllMarkets(
|
|
2797
|
+
updateTpOnAllMarkets(callback?: (payload: {
|
|
2798
|
+
account: ExchangeType;
|
|
2799
|
+
}) => Promise<any>): Promise<void>;
|
|
2791
2800
|
triggerMoverTask(payload: {
|
|
2792
2801
|
callback: (params: {
|
|
2793
2802
|
symbol: string;
|