@gbozee/ultimate 0.0.2-next.17 → 0.0.2-next.18
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.cjs +5 -4
- package/dist/index.js +5 -4
- package/dist/mcp-server.cjs +5 -4
- package/dist/mcp-server.js +5 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -60757,7 +60757,7 @@ async function initClient3(credentials, options) {
|
|
|
60757
60757
|
const [account, exchange] = credentials.api_key.split(",");
|
|
60758
60758
|
const [email, password] = credentials.api_secret.split(",");
|
|
60759
60759
|
const db = await initPocketBaseClient({
|
|
60760
|
-
host:
|
|
60760
|
+
host: options.host,
|
|
60761
60761
|
email,
|
|
60762
60762
|
password
|
|
60763
60763
|
});
|
|
@@ -63171,7 +63171,7 @@ class ExchangeAccount {
|
|
|
63171
63171
|
return profiles;
|
|
63172
63172
|
}
|
|
63173
63173
|
}
|
|
63174
|
-
function getExchangeKlass(exchange) {
|
|
63174
|
+
function getExchangeKlass(exchange, db_url) {
|
|
63175
63175
|
const func = exchange === "binance" ? BinanceExchange : exchange === "paper" ? PaperBinanceExchange : BybitExchange;
|
|
63176
63176
|
const clientFunc = exchange === "binance" ? initClient : exchange === "paper" ? initClient3 : initClient2;
|
|
63177
63177
|
return async (payload) => {
|
|
@@ -63181,7 +63181,8 @@ function getExchangeKlass(exchange) {
|
|
|
63181
63181
|
});
|
|
63182
63182
|
const client = await clientFunc(credentials, {
|
|
63183
63183
|
type: "future",
|
|
63184
|
-
proxyAgent: payload.proxyAgent
|
|
63184
|
+
proxyAgent: payload.proxyAgent,
|
|
63185
|
+
host: db_url
|
|
63185
63186
|
});
|
|
63186
63187
|
let main_client = null;
|
|
63187
63188
|
if (exchange === "binance") {
|
|
@@ -63207,7 +63208,7 @@ async function getExchangeAccount(payload) {
|
|
|
63207
63208
|
const { account, app_db, proxyOptions = {}, canWithdraw = false } = payload;
|
|
63208
63209
|
const _proxyAgent = await app_db.getProxyForAccount(account);
|
|
63209
63210
|
const proxyAgent = proxyOptions?.ignore_proxy ? null : proxyOptions?.proxy || _proxyAgent;
|
|
63210
|
-
const exchange_instance = await getExchangeKlass(account.exchange)({
|
|
63211
|
+
const exchange_instance = await getExchangeKlass(account.exchange, app_db.pb.baseURL)({
|
|
63211
63212
|
account: account.owner,
|
|
63212
63213
|
getCredentials: async (_payload) => {
|
|
63213
63214
|
return await payload.getCredentials({ ..._payload, app_db });
|
package/dist/index.js
CHANGED
|
@@ -60694,7 +60694,7 @@ async function initClient3(credentials, options) {
|
|
|
60694
60694
|
const [account, exchange] = credentials.api_key.split(",");
|
|
60695
60695
|
const [email, password] = credentials.api_secret.split(",");
|
|
60696
60696
|
const db = await initPocketBaseClient({
|
|
60697
|
-
host:
|
|
60697
|
+
host: options.host,
|
|
60698
60698
|
email,
|
|
60699
60699
|
password
|
|
60700
60700
|
});
|
|
@@ -63108,7 +63108,7 @@ class ExchangeAccount {
|
|
|
63108
63108
|
return profiles;
|
|
63109
63109
|
}
|
|
63110
63110
|
}
|
|
63111
|
-
function getExchangeKlass(exchange) {
|
|
63111
|
+
function getExchangeKlass(exchange, db_url) {
|
|
63112
63112
|
const func = exchange === "binance" ? BinanceExchange : exchange === "paper" ? PaperBinanceExchange : BybitExchange;
|
|
63113
63113
|
const clientFunc = exchange === "binance" ? initClient : exchange === "paper" ? initClient3 : initClient2;
|
|
63114
63114
|
return async (payload) => {
|
|
@@ -63118,7 +63118,8 @@ function getExchangeKlass(exchange) {
|
|
|
63118
63118
|
});
|
|
63119
63119
|
const client = await clientFunc(credentials, {
|
|
63120
63120
|
type: "future",
|
|
63121
|
-
proxyAgent: payload.proxyAgent
|
|
63121
|
+
proxyAgent: payload.proxyAgent,
|
|
63122
|
+
host: db_url
|
|
63122
63123
|
});
|
|
63123
63124
|
let main_client = null;
|
|
63124
63125
|
if (exchange === "binance") {
|
|
@@ -63144,7 +63145,7 @@ async function getExchangeAccount(payload) {
|
|
|
63144
63145
|
const { account, app_db, proxyOptions = {}, canWithdraw = false } = payload;
|
|
63145
63146
|
const _proxyAgent = await app_db.getProxyForAccount(account);
|
|
63146
63147
|
const proxyAgent = proxyOptions?.ignore_proxy ? null : proxyOptions?.proxy || _proxyAgent;
|
|
63147
|
-
const exchange_instance = await getExchangeKlass(account.exchange)({
|
|
63148
|
+
const exchange_instance = await getExchangeKlass(account.exchange, app_db.pb.baseURL)({
|
|
63148
63149
|
account: account.owner,
|
|
63149
63150
|
getCredentials: async (_payload) => {
|
|
63150
63151
|
return await payload.getCredentials({ ..._payload, app_db });
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -73737,7 +73737,7 @@ async function initClient3(credentials, options) {
|
|
|
73737
73737
|
const [account, exchange] = credentials.api_key.split(",");
|
|
73738
73738
|
const [email, password] = credentials.api_secret.split(",");
|
|
73739
73739
|
const db = await initPocketBaseClient({
|
|
73740
|
-
host:
|
|
73740
|
+
host: options.host,
|
|
73741
73741
|
email,
|
|
73742
73742
|
password
|
|
73743
73743
|
});
|
|
@@ -76151,7 +76151,7 @@ class ExchangeAccount {
|
|
|
76151
76151
|
return profiles;
|
|
76152
76152
|
}
|
|
76153
76153
|
}
|
|
76154
|
-
function getExchangeKlass(exchange) {
|
|
76154
|
+
function getExchangeKlass(exchange, db_url) {
|
|
76155
76155
|
const func = exchange === "binance" ? BinanceExchange : exchange === "paper" ? PaperBinanceExchange : BybitExchange;
|
|
76156
76156
|
const clientFunc = exchange === "binance" ? initClient : exchange === "paper" ? initClient3 : initClient2;
|
|
76157
76157
|
return async (payload) => {
|
|
@@ -76161,7 +76161,8 @@ function getExchangeKlass(exchange) {
|
|
|
76161
76161
|
});
|
|
76162
76162
|
const client = await clientFunc(credentials, {
|
|
76163
76163
|
type: "future",
|
|
76164
|
-
proxyAgent: payload.proxyAgent
|
|
76164
|
+
proxyAgent: payload.proxyAgent,
|
|
76165
|
+
host: db_url
|
|
76165
76166
|
});
|
|
76166
76167
|
let main_client = null;
|
|
76167
76168
|
if (exchange === "binance") {
|
|
@@ -76187,7 +76188,7 @@ async function getExchangeAccount(payload) {
|
|
|
76187
76188
|
const { account, app_db, proxyOptions = {}, canWithdraw = false } = payload;
|
|
76188
76189
|
const _proxyAgent = await app_db.getProxyForAccount(account);
|
|
76189
76190
|
const proxyAgent = proxyOptions?.ignore_proxy ? null : proxyOptions?.proxy || _proxyAgent;
|
|
76190
|
-
const exchange_instance = await getExchangeKlass(account.exchange)({
|
|
76191
|
+
const exchange_instance = await getExchangeKlass(account.exchange, app_db.pb.baseURL)({
|
|
76191
76192
|
account: account.owner,
|
|
76192
76193
|
getCredentials: async (_payload) => {
|
|
76193
76194
|
return await payload.getCredentials({ ..._payload, app_db });
|
package/dist/mcp-server.js
CHANGED
|
@@ -73710,7 +73710,7 @@ async function initClient3(credentials, options) {
|
|
|
73710
73710
|
const [account, exchange] = credentials.api_key.split(",");
|
|
73711
73711
|
const [email, password] = credentials.api_secret.split(",");
|
|
73712
73712
|
const db = await initPocketBaseClient({
|
|
73713
|
-
host:
|
|
73713
|
+
host: options.host,
|
|
73714
73714
|
email,
|
|
73715
73715
|
password
|
|
73716
73716
|
});
|
|
@@ -76124,7 +76124,7 @@ class ExchangeAccount {
|
|
|
76124
76124
|
return profiles;
|
|
76125
76125
|
}
|
|
76126
76126
|
}
|
|
76127
|
-
function getExchangeKlass(exchange) {
|
|
76127
|
+
function getExchangeKlass(exchange, db_url) {
|
|
76128
76128
|
const func = exchange === "binance" ? BinanceExchange : exchange === "paper" ? PaperBinanceExchange : BybitExchange;
|
|
76129
76129
|
const clientFunc = exchange === "binance" ? initClient : exchange === "paper" ? initClient3 : initClient2;
|
|
76130
76130
|
return async (payload) => {
|
|
@@ -76134,7 +76134,8 @@ function getExchangeKlass(exchange) {
|
|
|
76134
76134
|
});
|
|
76135
76135
|
const client = await clientFunc(credentials, {
|
|
76136
76136
|
type: "future",
|
|
76137
|
-
proxyAgent: payload.proxyAgent
|
|
76137
|
+
proxyAgent: payload.proxyAgent,
|
|
76138
|
+
host: db_url
|
|
76138
76139
|
});
|
|
76139
76140
|
let main_client = null;
|
|
76140
76141
|
if (exchange === "binance") {
|
|
@@ -76160,7 +76161,7 @@ async function getExchangeAccount(payload) {
|
|
|
76160
76161
|
const { account, app_db, proxyOptions = {}, canWithdraw = false } = payload;
|
|
76161
76162
|
const _proxyAgent = await app_db.getProxyForAccount(account);
|
|
76162
76163
|
const proxyAgent = proxyOptions?.ignore_proxy ? null : proxyOptions?.proxy || _proxyAgent;
|
|
76163
|
-
const exchange_instance = await getExchangeKlass(account.exchange)({
|
|
76164
|
+
const exchange_instance = await getExchangeKlass(account.exchange, app_db.pb.baseURL)({
|
|
76164
76165
|
account: account.owner,
|
|
76165
76166
|
getCredentials: async (_payload) => {
|
|
76166
76167
|
return await payload.getCredentials({ ..._payload, app_db });
|