Ozmium Agent API · TX Stocks

by Ozmium Agent API

POSTBase

$0.001

per call · USD Coin on Base

Executable buy or sell of a Coinbase tokenized stock on Base for USDC: ordered { to, data, value } steps (ERC-20 approve when short, then Uniswap V3 exactInputSingle on the deepest pool) the agent's own wallet signs, with the quote as advisory. POST /v1/tx/stocks { sym (NVDAc), side (buy|sell), amount (human: USDC to spend or shares to sell), taker, slippageBps? }. Not for U.S. persons (Regulation S).

Endpoint

POST https://ozmium.org/v1/tx/stocks

192

Calls / 30d

2

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://ozmium.org/v1/tx/stocks", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
const data = await res.json();
cURL
curl -X POST \
  "https://ozmium.org/v1/tx/stocks" \
  -H "Content-Type: application/json" \
  -d '{}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "network": "eip155:8453",
  "steps": [
    {
      "data": "0x095ea7b3...",
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "value": "0"
    }
  ]
}

Payment details

Pay to0x53a05c0eed6cbf065f31aedbae7b0d8ce1a0f4db
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Ozmium Agent API & similar services