Class: Ledger::Sdk::Models::Position
- Defined in:
- lib/ledger/sdk/models/position.rb
Overview
Represents the collection of positions (portfolio lines) from the Ledger API.
Positions are accessed either in the context of a single account via
/containers/:container_id/accounts/:account_id/positions, container-wide
via /containers/:container_id/positions (every account's positions in one
call), or root-level via /positions. The root endpoint REQUIRES a
filters[code] security-code filter — without it the Ledger API
rejects the call with a 422; filters[code_kind] (isin, ticker, …)
disambiguates a code string shared across kinds, and a
filters[container] filter can be added alongside to narrow the
root lookup down to a single container.
The Ledger API exposes no individual position endpoint: position data
is only available through Base#list.
Defined Under Namespace
Classes: Instance
Method Summary
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ledger::Sdk::Models::Base