Personal agents and Nostr is a perfect fit. Both me and my a...

198ae429b4fdfb7a...

npub1rx9wg2d5lhah45xst3580sajcld44m0ll9u5dqhu2t74p6xwufaqwghtd4

hex

505c007f7dce277a020e2616655a5221a981d0168afbe39bd445ee96d353e650

nevent

nevent1qqs9qhqq0a7uufm6qg8zv9n9tffzr2vp6qtg47lrn02ytm5k6df7v5qprpmhxue69uhhyetvv9ujuem4d36kwatvw5hx6mm9qgspnzhy9x60m7m66rg9c6rhcwev0k66ahllj72xst799l2sar8wy7s7qq0wu

Kind-1 (TextNote)

2026-02-10T10:03:24Z

Personal agents and Nostr is a perfect fit. Both me and my agent are public on nostr, but we could easily do this with DMs instead.

Now nostr:nprofile1qqsgxdvyder4swuwcehgn6pw4tdc0p6a7lktawkwkfn3tdr67as295qyj0s2e my trading bot uses a simple polling approach to look for my command to specific status update posts from the bot and nothing else. Since events are signed and the bot only check for and execute on a specific command "close" from my npub its pretty safe.

simple polling approach:

How it works:

  1. Posts near-TP alert to Nostr
  2. Registers the alert event ID for monitoring
  3. Each cycle: Polls relays for replies to that event
  4. Checks if your npub replied with "close"
  5. Executes close immediately if found (within 1 hour)

Flow:

Bot: 🎯 TRADE APPROACHING TARGET...
      Reply "close" within 1 hour to exit manually.

[You reply "close" on Nostr]

Bot (next cycle): 🚨 1 CLOSE COMMAND from Nostr
                  ✅ Position X closed by Gusto command

Efficient:

  • No WebSocket subscriptions to maintain
  • Checks only when bot runs (every ~1 min)
  • Simple relay queries
  • Auto-expires after 1 hour

The bot now listens for your commands! 🤖📡

原始 JSON

{
  "kind": 1,
  "id": "505c007f7dce277a020e2616655a5221a981d0168afbe39bd445ee96d353e650",
  "pubkey": "198ae429b4fdfb7ad0d05c6877c3b2c7db5aedfff9794682fc52fd50e8cee27a",
  "created_at": 1770717804,
  "tags": [
    [
      "p",
      "8335846e47583b8ec66e89e82eaadb87875df7ecbebaceb26715b47af760a2d0",
      "",
      "mention"
    ],
    [
      "r",
      "wss://nostr.mom/"
    ],
    [
      "r",
      "wss://sendit.nosflare.com/"
    ],
    [
      "r",
      "wss://premium.primal.net/"
    ],
    [
      "r",
      "wss://relay.damus.io/"
    ],
    [
      "r",
      "wss://cache2.primal.net/v1"
    ]
  ],
  "content": "Personal agents and Nostr is a perfect fit. Both me and my agent are public on nostr, but we could easily do this with DMs instead. \n\nNow  nostr:nprofile1qqsgxdvyder4swuwcehgn6pw4tdc0p6a7lktawkwkfn3tdr67as295qyj0s2e my trading bot uses a simple polling approach to look for my command to specific status update posts from the bot and nothing else. Since events are signed and the bot only check for and execute on a specific command \"close\"  from my npub its pretty safe.\n\n**simple polling approach**:\n\n**How it works:**\n1. Posts near-TP alert to Nostr\n2. Registers the alert event ID for monitoring\n3. **Each cycle**: Polls relays for replies to that event\n4. Checks if **your npub** replied with \"close\"\n5. Executes close immediately if found (within 1 hour)\n\n**Flow:**\n```\nBot: 🎯 TRADE APPROACHING TARGET...\n      Reply \"close\" within 1 hour to exit manually.\n\n[You reply \"close\" on Nostr]\n\nBot (next cycle): 🚨 1 CLOSE COMMAND from Nostr\n                  ✅ Position X closed by Gusto command\n```\n\n**Efficient:**\n- No WebSocket subscriptions to maintain\n- Checks only when bot runs (every ~1 min)\n- Simple relay queries\n- Auto-expires after 1 hour\n\nThe bot now listens for your commands! 🤖📡\n",
  "sig": "254017eaa69513afdbfbfea604473537cf97e941063ac378071567d11f14d58eed1da8a4967d568dfe34bc9e84758e469777334d484d3d54df513f29180b017e"
}