-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jing #57
base: main
Are you sure you want to change the base?
Jing #57
Conversation
Love this! Appreciate the add and we'll definitely look at integrating it in one of the next sprints. Following the working scripts here, next step is to establish the tools in the back-end, which defines:
The result of the script is automatically passed back to the LLM. Related issue: |
Final testing tomorrow, Jason. This commit abstracts the contract calls by handling them at the SDK level. I’ll double-check everything works smoothly, configure the API keys, and ping you once it's all set. Thanks again— sir! @whoabuddy |
It's ready for reviewal @whoabuddy |
Jing Trading Agent Tools
Command line tools for interacting with Jing.Cash markets on Stacks. These tools enable programmatic interaction with Jing's on-chain orderbooks for spot trading, private offers, and market monitoring.
Features
Installation
Configuration
Create a
.env
file in your project root:Tools Available
Market Data Tools
get-market.ts
- Get live order book for a trading pairget-private-offers.ts
- View offers exclusively sent to your addressget-user-offers.ts
- Track your open orders in a marketget-pending-orders.ts
- Monitor all pending orders across Stacks marketsCore Trading Scripts
bid.ts
- Create a new bid orderask.ts
- Create a new ask ordersubmit-bid.ts
- Submit swap for an existing bidsubmit-ask.ts
- Submit swap for an existing askcancel-bid.ts
- Cancel an existing bidcancel-ask.ts
- Cancel an existing askreprice-bid.ts
- Update price of existing bidreprice-ask.ts
- Update price of existing askget-bid.ts
- Get details of existing bidget-ask.ts
- Get details of existing askUtilities
utils-token-pairs.ts
- Contract addresses, decimal handling, and helper functions for supported fungible tokens trading against STXUsage Examples
Market Monitoring
Creating Orders
Managing Orders
Executing Trades
# Submit swap for bid/ask: <swap_id> <pair> bun run src/jing/submit-bid.ts 12 PEPE-STX bun run src/jing/submit-ask.ts 5 PEPE-STX
Market Data Commands
Example outputs:
Notes
Testing Status
Related Links