TorqueTorque

Search docs

Search Torque documentation pages and sections

@torquefi/types

Shared TypeScript types for Platform v1 — no runtime. Scoped package required on npm (unscoped torque-types is tombstoned).

Installation

yarn add @torquefi/types@^0.1.1

Subpath exports

@torquefi/typesCommon re-exports
@torquefi/types/intelligenceIntelligenceItemV1, feed query params, manifest
@torquefi/types/assistantChat body, SSE events, functionResults
@torquefi/types/opportunitiesYieldOpportunitiesResponseV1, LendingOpportunitiesResponseV1 (0.1.1)
@torquefi/types/platformClient config shapes

IntelligenceActionV1 (0.1.1)

Shared tile shape in Intelligence items[].actions[] and Opportunities markets[].action / lendAction / borrowAction: label, subtitle, torqueUrl, apyPercent, aprPercent, opportunityType, protocol, idleUsd, estimatedAnnualUsd.

Related

OpenAPI for HTTP codegen · API & SDK coverage

Was this helpful?