Veli Positions API

Portfolio holdings and allocations

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-schema/veli-portfolio-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-schema/veli-strategy-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-schema/veli-position-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-schema/veli-order-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-schema/veli-asset-allocation-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-schema/veli-performance-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-schema/veli-create-portfolio-request-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-structure/veli-portfolio-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-structure/veli-strategy-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-structure/veli-position-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-structure/veli-order-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-structure/veli-asset-allocation-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-structure/veli-performance-response-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-structure/veli-create-portfolio-request-structure.json

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/veli-positions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

veli-positions-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Veli Orders Positions API
  description: The Veli API enables financial platforms and crypto exchanges to integrate automated investment strategies for their users. Partners retain custody and execution while Veli handles strategy logic, rebalancing signals, fee collection, and performance reporting for crypto portfolios.
  version: '1.0'
  contact:
    name: Veli Support
    url: https://veli.io/
  license:
    name: Veli Terms of Service
    url: https://veli.io/terms
  x-generated-from: documentation
servers:
- url: https://api.veli.io/v1
  description: Veli API
security:
- BearerAuth: []
tags:
- name: Positions
  description: Portfolio holdings and allocations
paths:
  /portfolios/{portfolioId}/positions:
    get:
      operationId: getPositions
      summary: Veli Get Positions
      description: Returns current asset positions in a portfolio including quantity, average cost, current value, unrealized P&L, and percentage allocation.
      tags:
      - Positions
      parameters:
      - name: portfolioId
        in: path
        required: true
        description: Portfolio identifier
        schema:
          type: string
        example: port-abc123
      responses:
        '200':
          description: Current portfolio positions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PositionListResponse'
              examples:
                GetPositions200Example:
                  summary: Default getPositions 200 response
                  x-microcks-default: true
                  value:
                    portfolioId: port-abc123
                    positions:
                    - symbol: BTC
                      quantity: 0.045
                      averageCost: 42000.0
                      currentPrice: 68000.0
                      currentValue: 3060.0
                      unrealizedPnL: 1170.0
                      allocationPct: 0.583
                    - symbol: ETH
                      quantity: 1.15
                      averageCost: 1800.0
                      currentPrice: 1900.0
                      currentValue: 2185.0
                      unrealizedPnL: 115.0
                      allocationPct: 0.416
        '404':
          description: Portfolio not found
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    PositionListResponse:
      type: object
      properties:
        portfolioId:
          type: string
        positions:
          type: array
          items:
            $ref: '#/components/schemas/Position'
    Position:
      type: object
      description: Current asset position in a portfolio
      properties:
        symbol:
          type: string
          description: Crypto asset symbol
          example: BTC
        quantity:
          type: number
          description: Number of units held
          example: 0.045
        averageCost:
          type: number
          description: Average cost per unit in base currency
          example: 42000.0
        currentPrice:
          type: number
          description: Current market price per unit
          example: 68000.0
        currentValue:
          type: number
          description: Current total position value
          example: 3060.0
        unrealizedPnL:
          type: number
          description: Unrealized profit/loss
          example: 1170.0
        allocationPct:
          type: number
          description: Actual allocation percentage
          example: 0.583
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Bearer token for API authentication