Off-Exchange Settlement: Allocate Assets to Partners

Allocate assets to a connected partner for trading. See the Guide.

  1. You request a signing payload from BitGo for the allocation. This payload will be used to sign the allocation request and ensure its authenticity. This step is required before creating the allocation request.

    API Reference

  2. You allocate assets to a connected partner platform. BitGo locks allocated assets and makes them available for trading on the partner platform. Allocations occur synchronously, and you can view your allocated balance from the BitGo web application or programmatically.

    Prerequisites: You must first connect to a partner platform.

    API Reference

// 1. Get Allocation Payload
export ENTERPRISE_ID="<YOUR_ENTERPRISE_ID>"
export CONNECTION_ID="<YOUR_CONNECTION_ID>"
export ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"

curl -X POST \
  https://app.bitgo-test.com/api/network/v1/enterprises/$ENTERPRISE_ID/clients/connections/$CONNECTION_ID/allocations/signing \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -d '{
    "amount": {
      "currency": "string",
      "quantity": "string"
    },
    "clientExternalId": "string",
    "nonce": "string",
    "notes": "string"
  }'
// 2. Create Allocation Request
export ENTERPRISE_ID="<YOUR_ENTERPRISE_ID>"
export CONNECTION_ID="<YOUR_CONNECTION_ID>"
export ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"

curl -X POST \
  https://app.bitgo-test.com/api/network/v1/enterprises/$ENTERPRISE_ID/clients/connections/$CONNECTION_ID/allocations \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -d '{
    "amount": {
      "currency": "string",
      "quantity": "string"
    },
    "clientExternalId": "string",
    "payload": "string",
    "signature": "string",
    "nonce": "string",
    "notes": "string"
  }'
Response
// 1. Get Allocation Payload Response
{
  "payload": "string"
}

// 2. Create Allocation Request Response
{
  "allocation": {
    "status": "cleared",
    "id": "string",
    "amount": {
      "currency": "string",
      "quantity": "string"
    },
    "connectionId": "string",
    "clientExternalId": "string",
    "partnerExternalId": "string",
    "initiatedBy": "string",
    "notes": "string",
    "createdAt": "2019-08-24",
    "updatedAt": "2019-08-24"
  }
}