Skip to main content
POST
/
lending-stocks
/
api
/
hooks
/
{marketId}
/
{hookId}
/
toggle
curl -X POST "https://api.trusset.org/lending-stocks/api/hooks/{marketId}/{hookId}/toggle" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"active": false}'
{
  "success": true,
  "data": {
    "id": "hook_002",
    "active": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.trusset.org/llms.txt

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

Path Parameters

marketId
string
required
Market ID.
hookId
string
required
Hook ID.

Body Parameters

active
boolean
required
Set to true to enable, false to disable.
curl -X POST "https://api.trusset.org/lending-stocks/api/hooks/{marketId}/{hookId}/toggle" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"active": false}'
{
  "success": true,
  "data": {
    "id": "hook_002",
    "active": false
  }
}