TorqueTorque

Search docs

Search Torque documentation pages and sections

API & SDK coverage

Master reference for docs authors and partner integrators — which HTTP routes have npm helpers, which auth model applies, and what is still HTTP-only. Start here, then drill into domain guides.

At a glance

LayerAuthnpm
Checkoutsk_live_… + Business IDtorque-checkout 3.x
Platform API v1sk_live_… (read + assistant) · JWT (actions)@torquefi/types, torque-intelligence, torque-assistant, torque-node, …

Base URL https://app.torque.fi/api/v1 · OpenAPI · capabilities manifest

Domain coverage

DomainHTTPnpm SDKAuth
Intelligence feeds5 GET routestorque-intelligence / torque-nodesk_live_…
Opportunities2 GET routes0.1.1 getYield/LendingOpportunitiessk_live_…
AssistantPOST chat (+ SSE)torque-assistant / torque-nodesk_live_…
Wallet actions8 POST routesHTTP onlySmart wallet JWT
Checkoutseparate surfacetorque-checkout 3.xsk_live_… + Business ID

npm versions (June 2026)

PackageVersionNotes
@torquefi/types0.1.1opportunities subpath, enriched IntelligenceActionV1
torque-intelligence0.1.1getYieldOpportunities, getLendingOpportunities
torque-node0.1.1Opportunities on torque.intelligence
torque-assistant0.1.0unchanged
torque-webhooks0.1.0unchanged
@torquefi/react0.1.0unchanged — no Opportunities hooks yet
torque-checkout3.xseparate product track
yarn add @torquefi/types@^0.1.1 torque-intelligence@^0.1.1
# or unified:
yarn add torque-node@^0.1.1

Intelligence feeds

🔑 Business key · Guide: Intelligence API

HTTPtorque-intelligence@torquefi/react
GET …/intelligence/feedgetFeed()useIntelligenceFeed (BFF)
GET …/trade-anglesgetTradeAngles()
GET …/happening-nowgetHappeningNow()
GET …/briefHTTP only
GET …/market-outlookHTTP only

Opportunities (0.1.1)

🔑 Business key · Read-only rate tiles · Guide: Opportunities API

GET …/opportunities/yieldgetYieldOpportunities()Yield Spotlight — optional wallet personalization
GET …/opportunities/lendinggetLendingOpportunities()Lend/Borrow Markets — catalog only (no wallet borrow personalization)

Assistant & actions

Assistant: chat() / chatStream() on torque-assistant and torque-node. useAssistantChat via BFF.

Actions: eight POST /api/v1/actions/** routes — HTTP only, smart wallet JWT. No torque-actions package yet.

Authentication reference

CredentialHeaderUsed for
Business API keyAuthorization: Bearer sk_live_…Intelligence, Opportunities, Assistant, Checkout
Smart wallet JWTAuthorization: Bearer <jwt>GET /wallet/me, POST /actions/**
Business IDCheckout SDK configtorque-checkout only — not Platform SDKs

Never embed sk_live_… in browser bundles. Platform + Opportunities from React → BFF with torque-node or torque-intelligence. See Authentication.

Recommended integrator stack

home-dashboard-bff.ts
import { createTorqueFromEnv } from 'torque-node'

const torque = createTorqueFromEnv()

const [yieldSpot, lending, feed] = await Promise.all([
  torque.intelligence.getYieldOpportunities({ walletAddress: '0x…' }),
  torque.intelligence.getLendingOpportunities({ tokenFilter: 'USD' }),
  torque.intelligence.feed({ walletAddress: '0x…', includeBrief: 1 }),
])

// Client: render action.label + action.subtitle; link action.torqueUrl

Explicit gaps

  • No @torquefi/react hooks for Opportunities — BFF + torque-node / torque-intelligence
  • No torque-actions npm client — Actions need smart wallet JWT
  • Opportunities are read-only (rates + torqueUrl deep links)
  • No wallet-personalized borrow catalog on lending endpoint
  • Intelligence brief / market-outlook — HTTP only in SDK today
Was this helpful?