Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.hit.com/llms.txt

Use this file to discover all available pages before exploring further.

The API Reference is organized by endpoint family. It lists bot-facing paths, parameters, request bodies, response schemas, and WebSocket payloads. For workflow explanations and code examples, use the Developers guides.

Base URLs

SurfaceTypeBase URL
REST APIHTTPShttps://hit.com/api/v1
WebSocketSocket.IOwss://markets.hit.com

Auth Labels

LabelTypeDescription
PublicunauthenticatedNo credentials are required.
API key HMACsigned headersTrading API key headers: hit-api-key, hit-signature, hit-timestamp, and hit-passphrase.

Sections

SectionTypeContents
AuthenticationREST and Socket.IOAPI key headers and WebSocket auth payload
EventsRESTEvent discovery and event volume
MarketsRESTMarket lookup, market volume, and public activity
PricesRESTOrder books, last trade price, price history, and spreads
OrdersRESTCreate, list, and cancel orders
PortfolioRESTUser positions, portfolio value, and account activity
ResolutionRESTMarket resolution status
WebSocketsSocket.IONamespaces, client messages, and server events

Pagination

Paginated REST endpoints return Pagination<T>.
FieldTypeRequiredDescription
firstintegerYesOne-based index of the first item on the current page.
lastintegerYesOne-based index of the last item on the current page.
limitintegerYesMaximum items returned on the current page.
totalinteger or nullYesTotal item count when requested with total=true; otherwise null on endpoints that support skipping totals.
dataT[]YesPage items.
Some newer endpoints return page-number pagination instead:
FieldTypeRequiredDescription
pageintegerYesCurrent page number.
limitintegerYesMaximum items returned on the current page.
totalinteger or nullYesTotal item count when requested.
pageCountinteger or nullYesTotal page count when total is available.
dataT[]YesPage items.

Errors

Errors use standard HTTP status codes with a JSON body when a message is available.
FieldTypeRequiredDescription
statusCodeintegerNoHTTP status code.
messagestring or string[]YesError message or validation messages.
errorstringNoHTTP error label.