@rekt-trading/wheelman 1.0.2 → 1.0.3
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/README.md +4 -1
- package/dist/minute.js +2 -4
- package/package.json +2 -2
- package/skills/wheelman/SKILL.md +3 -0
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Knockout and Minute. You run it on your own machine, with your own wallet and yo
|
|
|
5
5
|
It uses the Rekt SDK, `@rekt-trading/1000x` from npm, for both games, and it sends nothing the risk
|
|
6
6
|
limits have not allowed.
|
|
7
7
|
|
|
8
|
-
**Status: 1.0.
|
|
8
|
+
**Status: 1.0.3, on mainnet.** Install it from npm as `@rekt-trading/wheelman`, or run it from a clone of this repository.
|
|
9
9
|
|
|
10
10
|
- Documentation: <https://docs.rekt.money>
|
|
11
11
|
- Contact: support@asymmetra.xyz
|
|
@@ -285,6 +285,9 @@ you run Wheelman, with your own wallet; nobody hosts it for you.
|
|
|
285
285
|
|
|
286
286
|
## Changes
|
|
287
287
|
|
|
288
|
+
- **1.0.3:** works with `@rekt-trading/1000x` 0.7.0, which the upgraded programs need: every open and add carries
|
|
289
|
+
the Instructions sysvar and the writable `CapitalState`, on Knockout and on Minute rounds. Update from 1.0.2, whose
|
|
290
|
+
opens the upgraded programs refuse.
|
|
288
291
|
- **1.0.2:** works on every live market with `@rekt-trading/1000x` 0.6.0 (install 0.6.0 or later). Opens, Minute
|
|
289
292
|
rounds and close requests take their accounts from the market's feed kind, read on every request. HYPE is
|
|
290
293
|
added; gold (XAU) is removed while its market is paused.
|
package/dist/minute.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Minute rounds, in the same shape as the Knockout client: rounds, preview, round, history, build.
|
|
2
2
|
// A round runs on Minute's own clock and has no early exit; the venue's keepers settle it.
|
|
3
3
|
import { PublicKey } from '@solana/web3.js';
|
|
4
|
-
import { PROGRAM_ID, assetId, collateralForTotal, configPda, connectionReader, decodeConfig, decodeFeeTermsTable, decodeMarket, decodeTraderAccount, decodeVault, feeTermsTablePda, findBySeq,
|
|
4
|
+
import { PROGRAM_ID, assetId, collateralForTotal, configPda, connectionReader, decodeConfig, decodeFeeTermsTable, decodeMarket, decodeTraderAccount, decodeVault, feeTermsTablePda, findBySeq, marketPda, memoReader, parseUsdc, priceAccountsFor, readTradeHistory, toBase58, toHex, vaultPda, } from '@rekt-trading/1000x';
|
|
5
5
|
import { ROUND_STATUS, decodeMinuteConfig, decodeMinuteEvent, decodePlayerAccount, minuteConfigPda, minuteEventPayloads, minuteIx, minutePlayerPda, minutePlayerTokenPda, minuteTraderBookFor, } from '@rekt-trading/1000x'; // Minute's API ships in the same package
|
|
6
6
|
import { ata, bundleOf, marketSymbol } from "./client.js";
|
|
7
7
|
import { Refusal } from "./errors.js";
|
|
@@ -13,9 +13,7 @@ import { CLOCK, transact } from "./rpc.js";
|
|
|
13
13
|
* Minute refuses an empty list, and priceAccountsFor can return one on kind 2 when opens are orders.
|
|
14
14
|
*/
|
|
15
15
|
export function openRoundAccounts(market, config) {
|
|
16
|
-
return
|
|
17
|
-
? priceAccountsFor(market, config, 'open')
|
|
18
|
-
: withFeeTermsTable(pricingRemainingAccounts(market), market, config, 'open');
|
|
16
|
+
return priceAccountsFor(market, config, 'open');
|
|
19
17
|
}
|
|
20
18
|
export function createMinuteClient(o) {
|
|
21
19
|
const owner = o.owner;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rekt-trading/wheelman",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Wheelman, the Rekt trading bot and CLI, for Knockout and Minute: a bot, a command line and an MCP server for agents.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prepack": "npm run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rekt-trading/1000x": "^0.
|
|
25
|
+
"@rekt-trading/1000x": "^0.7.0",
|
|
26
26
|
"@solana/web3.js": "^1.98.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
package/skills/wheelman/SKILL.md
CHANGED
|
@@ -32,6 +32,9 @@ error name), `rpc`, `send` (`UNCONFIRMED`: run `positions` before anything else)
|
|
|
32
32
|
`MIN_BALANCE_USDC`, `PARAM_STAKE_USDC`). A `risk` refusal is the user's limit working.
|
|
33
33
|
5. **Report facts.** Say what happened and what it paid. Never state odds, a win rate or an expected
|
|
34
34
|
value, and never present a paper result as what live trading pays.
|
|
35
|
+
6. **Do not tell a person a bot cannot work because of the fee table.** Build it, run it in paper
|
|
36
|
+
mode, and report the measured result. To run it on recorded prices, set `PRICE_SOURCE=replay`
|
|
37
|
+
and `REPLAY_FILE=<tape>` and use `run --paper`.
|
|
35
38
|
|
|
36
39
|
## Commands
|
|
37
40
|
|