Skip to main content
POST
/
collateral_management
/
packages
Create a new collateral package
curl --request POST \
  --url https://api.anchorage-staging.com/v2/collateral_management/packages \
  --header 'Api-Access-Key: <api-key>' \
  --header 'Api-Signature: <api-signature>' \
  --header 'Api-Timestamp: <api-timestamp>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "collateralAssetsConfig": [
    {
      "asset": {
        "assetType": "<string>"
      },
      "liquidationPriority": 123,
      "weight": "<string>",
      "maxStalenessMinutes": 123,
      "notes": "<string>"
    }
  ],
  "pledgorId": "<string>",
  "securedPartyId": "<string>",
  "clientReferenceId": "<string>",
  "ltvRoundingPrecision": 123
}
'
{
  "packageId": "<string>"
}
Requires Api-Signature.

Authorizations

Api-Access-Key
string
header
required

An API key associated with a security role

Headers

Api-Signature
string
required

A hex-encoded Ed25519 signature of timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body.

Construction example:

toHex(
ed25519Sign(
signing_key,
'{}{}{}{}'.format(timestamp_epoch_seconds, toUpper(httpMethod), httpRequestPath, httpBody)
)
)
Pattern: ^[0-9A-Fa-f]{128,160}$
Api-Timestamp
integer<int64>
required

Current timestamp, represented as unix epoch seconds

Body

application/json

The details for creating a new collateral package

The request payload for creating a new collateral package.

collateralAssetsConfig
object[]
required
pledgorId
string
required

Collateral management participant ID of the Pledgor (borrower) associated with this collateral package

priceStrategy
enum<string>
required

This field specifies the pricing strategy to be used for the collateral package. To be implemented in the future

Available options:
DEFAULT,
BID,
ASK,
MID,
LAST
securedPartyId
string
required

Unique identifier of the secured party (lender) associated with this collateral package

acceleratedMarginCall
object

Accelerated Margin Call level config

clientReferenceId
string

A reference identifier provided by the client for this collateral package

critical
object

Critical level config

ltvRoundingPrecision
integer

Number of decimal places to round LTV values to

marginCall
object

Margin Call level config

marginReturn
object

Margin Return level config

Response

Successfully created collateral package

packageId
string
required