Bankr Dev - API Basics

Bankr Dev - API Basics is a skill for Claude Code from BankrBot/claude-plugins. It costs 66 tokens per session (1,833 once invoked), scanned A, original, MIT.

A developer guide for the Bankr Agent API, which lets programs request crypto trading, market analysis, and prediction-market operations. It explains how to submit a job, check its status, and collect the result.

In plain words
What is it for?
Use it to build TypeScript integrations with Bankr, submit prompts, poll job progress, handle completed or failed jobs, and interpret API responses.
Why use it?
It removes the guesswork around delayed API operations that may take from 30 seconds to several minutes. It also documents authentication, response formats, and TypeScript interfaces.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the bankr-agent-dev plugin — 16 skills, 1 command shipped together

Good fit Use it to build TypeScript integrations with Bankr, submit prompts, poll job progress, handle completed or failed jobs, and interpret API responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bankrbot/claude-plugins/bankr-api-basics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BankrBot/claude-plugins --skill bankr-api-basics
Clone the repo
git clone --depth 1 https://github.com/BankrBot/claude-plugins

Made for: Claude Code.

Or install bankr-agent-dev, the plugin that ships this one along with the rest of its 16 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Bankr Dev - API Basics

README.md
[![agentmods](https://agentmods.dev/badge/skills/bankrbot/claude-plugins/bankr-api-basics/github.svg)](https://agentmods.dev/skills/bankrbot/claude-plugins/bankr-api-basics)
Your own site
<a href="https://agentmods.dev/skills/bankrbot/claude-plugins/bankr-api-basics"><img src="https://agentmods.dev/badge/skills/bankrbot/claude-plugins/bankr-api-basics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Bankr Dev - API Basics

Your own site · 80×15
<a href="https://agentmods.dev/skills/bankrbot/claude-plugins/bankr-api-basics"><img src="https://agentmods.dev/badge/skills/bankrbot/claude-plugins/bankr-api-basics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01833
Opus 5 $0.00033 $0.00916
Sonnet 5 $0.00013 $0.00367
Haiku 4.5 $0.00007 $0.00183

Measured 9d ago against content hash 4ef37db5056d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

Bankr Dev - API Basics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (examples/basic-client.ts, examples/polling-with-updates.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bankr-agent-dev/skills/bankr-api-basics/SKILL.md · 267 lines

How it starts

The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bankr Agent API Essentials

When answering questions about the Bankr API:

  1. Explain the asynchronous job pattern (submit-poll-complete)
  2. Reference the endpoint documentation and TypeScript examples below
  3. For detailed response structures, consult references/job-response-schema.md
  4. Point developers to working examples in examples/ directory

The Bankr Agent API enables programmatic access to crypto trading, market analysis, and prediction markets through a simple asynchronous job pattern.

Core Concept: Asynchronous Job Pattern

All Bankr operations follow a submit-poll-complete pattern:

  1. Submit a natural language prompt to start a job
  2. Poll the job status every 2 seconds
  3. Receive results when status is terminal (completed/failed/cancelled)

This pattern handles operations that may take 30 seconds to 2+ minutes (trades, complex analysis).

API Endpoints

Base URL

https://api.bankr.bot

Authentication

All requests require the x-api-key header:

x-api-key: bk_your_api_key_here

The API key is tied to a specific user's Bankr account and wallet.

Endpoint 1: Submit Prompt

POST /agent/prompt
Content-Type: application/json

{
  "prompt": "Buy $50 of ETH on Base"
}

Response:

{
  "success": true,
  "jobId": "job_abc123",
  "status": "pending"
}

Code example:

async function submitPrompt(prompt: string): Promise<{ jobId: string }> {
  const response = await fetch(`${API_URL}/agent/prompt`, {
    method: "POST",
    headers: {
      "x-api-key": API_KEY,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ prompt }),
  });
  const data = await response.json();
  if (!data.success) throw new Error(data.error || "Failed to submit");
  return { jobId: data.jobId };
}

Endpoint 2: Get Job Status

GET /agent/job/{jobId}

Response:

{
  "success": true,
  "jobId": "job_abc123",
  "status": "completed",
  "prompt": "What is the price of ETH?",
  "response": "Ethereum (ETH) is currently trading at $3,245.67...",
  "transactions": [],
  "statusUpdates": [
    { "message": "Fetching price data...", "timestamp": "2024-01-15T10:00:02Z" }
  ],
  "createdAt": "2024-01-15T10:00:00Z",
  "completedAt": "2024-01-15T10:00:05Z",
  "processingTime": 5000
}

Read the full file on GitHub · 267 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 267 lines · 66 tokens per session scan A 4ef37db5056d

Subscribe to this mod's changes

Bankr Dev - API Basics is a skill published in the GitHub repository BankrBot/claude-plugins (85 stars, last pushed 5mo ago), licensed MIT. It adds 66 tokens to every session and 1,833 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.