@hyperflow.fun/ghost 0.0.5 → 0.0.6

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.js CHANGED
@@ -181886,9 +181886,7 @@ class PaperEngine {
181886
181886
  }
181887
181887
  async executeMarketOrder(symbol5, params, isMaker = false) {
181888
181888
  const ticker = await this.marketClient.getTicker(symbol5);
181889
- const slippage = params.slippagePct ?? 0.5;
181890
- const slippageMul = params.side === "buy" ? 1 + slippage / 100 : 1 - slippage / 100;
181891
- const fillPrice = isMaker ? ticker.midPrice : ticker.midPrice * slippageMul;
181889
+ const fillPrice = ticker.midPrice;
181892
181890
  return this.db.transaction(() => {
181893
181891
  const existing = this.db.query("SELECT * FROM paper_positions WHERE symbol = ?").get(symbol5);
181894
181892
  const isBuy = params.side === "buy";
@@ -194421,32 +194419,14 @@ $2`);
194421
194419
  function formatAskFallback(inner) {
194422
194420
  const questionRe = /<question>([\s\S]*?)<\/question>/gi;
194423
194421
  const titleRe = /<title>([\s\S]*?)<\/title>/i;
194424
- const optionsRe = /<options>([\s\S]*?)<\/options>/i;
194425
- const optionRe = /<option>([\s\S]*?)<\/option>/gi;
194426
194422
  const lines = [];
194427
194423
  let m6;
194428
194424
  let i = 1;
194429
194425
  while ((m6 = questionRe.exec(inner)) !== null) {
194430
- const body = m6[1];
194431
- const title = titleRe.exec(body)?.[1]?.trim();
194426
+ const title = titleRe.exec(m6[1])?.[1]?.trim();
194432
194427
  if (!title)
194433
194428
  continue;
194434
- let entry = `${i}. ${title}`;
194435
- const optionsBlock = optionsRe.exec(body)?.[1];
194436
- if (optionsBlock) {
194437
- const opts = [];
194438
- optionRe.lastIndex = 0;
194439
- let om2;
194440
- while ((om2 = optionRe.exec(optionsBlock)) !== null) {
194441
- const v4 = om2[1].trim();
194442
- if (v4)
194443
- opts.push(v4);
194444
- }
194445
- if (opts.length > 0)
194446
- entry += `
194447
- Options: ${opts.join(" / ")}`;
194448
- }
194449
- lines.push(entry);
194429
+ lines.push(`${i}. ${title}`);
194450
194430
  i++;
194451
194431
  }
194452
194432
  if (lines.length === 0)
package/dist/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@hyperflow.fun/ghost",
3
- "version": "0.0.5"
3
+ "version": "0.0.6"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperflow.fun/ghost",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "AI trading companion for Hyperliquid perpetuals",
5
5
  "type": "module",
6
6
  "license": "MIT",