Investment Account Reporting

After order has been processed you can access portfolio and holdings data on the account

account_fetch_url = f"{base_url}/accounts/{account_id}"

headers = {
    "accept": "application/json",
    "caliber-api-key": caliber_api_key,
    "caliber-individual-id": party_id
}

account_fetch_response = requests.get(account_fetch_url, headers=headers)
print(f"Access current portfolio snapshot on the account: \n {json.dumps(account_fetch_response.json(), indent = 2)}")

account_performance_fetch_url = f"{base_url}/accounts/{account_id}/performance?period=quarterly&start_date=2023-01-01&include=account_timeseries,holdings_timeseries"

headers = {
    "accept": "application/json",
    "caliber-api-key": caliber_api_key,
    "caliber-individual-id": party_id
}

account_perf_fetch_response = requests.get(account_performance_fetch_url, headers=headers)

print(f"Access account performance: \n {json.dumps(account_perf_fetch_response.json(), indent = 2)}")
Access current portfolio snapshot on the account: 
 {
  "id": "5397aca9-ebe5-4055-80e2-9d0bbbbbc92e",
  "account_type": "individual",
  "name": "John Doe Individual Account",
  "ready_to_trade": "inactive",
  "created_at": "2023-06-22T16:44:41.693780Z",
  "updated_at": "2023-06-22T16:44:41.694395Z",
  "verifications": {
    "identity": "approved",
    "accreditation": "approved",
    "authorized_signatories": "not_started"
  },
  "related_parties": [
    {
      "relationship_id": "801505e0-e2d7-4c08-bccc-10b907603fc9",
      "related_account_id": "5397aca9-ebe5-4055-80e2-9d0bbbbbc92e",
      "related_party_id": "783cb646-87bb-4866-a0e3-99aeb1cedf6e",
      "related_party": {
        "id": "783cb646-87bb-4866-a0e3-99aeb1cedf6e",
        "party_type": "individual",
        "verifications": {
          "identity": "approved",
          "accreditation": "approved",
          "authorized_signatories": "not_started"
        },
        "relationships": {
          "accounts": [
            {
              "relationship_id": "801505e0-e2d7-4c08-bccc-10b907603fc9",
              "party_id": "783cb646-87bb-4866-a0e3-99aeb1cedf6e",
              "related_account_id": "5397aca9-ebe5-4055-80e2-9d0bbbbbc92e",
              "related_account": {
                "id": "5397aca9-ebe5-4055-80e2-9d0bbbbbc92e",
                "account_type": "individual",
                "name": "John Doe Individual Account",
                "ready_to_trade": "inactive",
                "created_at": "2023-06-22T16:44:41.693780Z",
                "updated_at": "2023-06-22T16:44:41.694395Z",
                "verifications": {
                  "identity": "approved",
                  "accreditation": "approved",
                  "authorized_signatories": "not_started"
                }
              },
              "metadata": {},
              "relationship_properties": {
                "relationship_percentage": 1.0,
                "relationship_role": "owner"
              }
            }
          ],
          "parties": {
            "parent_parties": [],
            "child_parties": []
          }
        },
        "individual": {
          "id": "783cb646-87bb-4866-a0e3-99aeb1cedf6e",
          "status": "inactive",
          "primary_phone": "+13124022333",
          "primary_email": "[email protected]",
          "addresses": [
            {
              "id": "e8a46bb5-e59b-45fa-a43c-32a8ca8eb213",
              "address_type": "primary",
              "address_line_1": "111 NE 2nd Ave",
              "address_line_2": null,
              "address_line_3": null,
              "city": "Miami",
              "region": "FL",
              "postal_code": "33132",
              "country": "US",
              "created_at": "2023-06-22T16:02:51.750196Z",
              "updated_at": "2023-06-22T16:02:51.750710Z",
              "metadata": {}
            },
            {
              "id": "c227a904-e93f-4ea3-bea6-5845b61ca3b1",
              "address_type": "legal",
              "address_line_1": "112 NE 2nd Ave",
              "address_line_2": null,
              "address_line_3": null,
              "city": "Miami",
              "region": "FL",
              "postal_code": "33132",
              "country": "US",
              "created_at": "2023-06-22T16:03:03.666385Z",
              "updated_at": "2023-06-22T16:03:03.667096Z",
              "metadata": {}
            }
          ],
          "documents": [
            {
              "id": "7a03a92c-3387-4758-a809-1a3f109efbc0",
              "name": "John Doe Passport",
              "description": null,
              "purpose": "identity",
              "document_type": "passport",
              "document_subtype": null,
              "party_id": "783cb646-87bb-4866-a0e3-99aeb1cedf6e",
              "file_url": "https://storage.googleapis.com/poolit-platform-development-usc1-poolit-platform-api/Document/7a03a92c-3387-4758-a809-1a3f109efbc0/e22711b8dbb44eea6d4e850c0010a986c30f285da17a379e95.jpg?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=poolit-platform-api%40poolit-platform-development.iam.gserviceaccount.com%2F20230622%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20230622T165050Z&X-Goog-Expires=86400&X-Goog-SignedHeaders=host&X-Goog-Signature=060af93803e75d8fb08b90d7ac0167d1c1a1852297f2171a2bf820db7f651be44fee7d799f07edceddef1490146492b9bbd8df75b71e6baf225ce38f4ffe4a1c1642f4684b01b4b750baa62737ebcd4af70adf4292c994d097ffa83e72f6e4e2f0052c3967238fdfe263ad9e1e946a73e729e186c6361102552cab43777c7b4f72e4c8fd25fd722c40fe4fde4b6be4db177dcb7af301f51636d37fa39a33ab575a09880f762e02a697b106dbd9ac530bac94f2f892b4afe831ffc64805ed452edad97db6d3610721b93792f98183129cb8eb257f88f4f4e0cb598a3139e11d0603cf75f3b08c5a227a7302b901fba4380ee2d1496d1c7c8cd5b9fa2c87720c37",
              "metadata": {}
            },
            {
              "id": "d276aff0-b139-42f1-954a-5f991462a01a",
              "name": "John Doe Passport",
              "description": null,
              "purpose": "identity",
              "document_type": "passport",
              "document_subtype": null,
              "party_id": "783cb646-87bb-4866-a0e3-99aeb1cedf6e",
              "file_url": "https://storage.googleapis.com/poolit-platform-development-usc1-poolit-platform-api/Document/d276aff0-b139-42f1-954a-5f991462a01a/e22711b8dbb44eea6d4e850c0010a986c30f285da17a379e95.jpg?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=poolit-platform-api%40poolit-platform-development.iam.gserviceaccount.com%2F20230622%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20230622T165050Z&X-Goog-Expires=86400&X-Goog-SignedHeaders=host&X-Goog-Signature=8a92fb38fcb9f81bf60d81a0c50a9c1266aff143831b7345739a00db0eb4cdbd6ee65e49062af958a696ece0051fe3edf08ebea5d745aff6a4de0ef4f20f9723dd783618c6aaae768ca7dad829faf06a2ff28a1b08426af54b3d476a857afeedcd173fc449d8750c07d8a53795ed6444bd184f81d3d4a915b23fd799685433cdccb780c85bc028c84f5a9cad84b751db0b7caf1f22fff29ce314afcc5bc96ca4168b850f7703f913f82cadc8fb9e17807e253420fc7660dab4c477b042e38eb96866cd5bc46a84dcd13b2867c9afd6980c6355959b633efff4d95b67016899d235fb6fc01dba6f395f848ede664c38cfd1c4cb4c672d69e73cf2306db8c156ae",
              "metadata": {}
            }
          ],
          "tax_id": {
            "tax_id_type": "ssn",
            "tax_id_value": "312426550"
          },
          "created_at": "2023-06-22T16:02:51.743354Z",
          "updated_at": "2023-06-22T16:02:51.743992Z",
          "metadata": {},
          "accredited_investor_type": "annual_income_over_threshold",
          "first_name": "John",
          "middle_name": "",
          "last_name": "Doe",
          "date_of_birth": "1990-04-21",
          "country_of_residence": "US",
          "region_of_residence": "FL"
        }
      },
      "relationship_type": "owner",
      "created_at": "2023-06-22T16:44:42.271353Z",
      "updated_at": "2023-06-22T16:44:42.271949Z"
    }
  ]
}
Access account performance: 
 {
  "current_account_performance": {
    "date": "2023-06-22",
    "net_asset_value": {
      "amount": "0.00",
      "currency": "USD"
    },
    "net_gain": {
      "amount": "0.00",
      "currency": "USD"
    },
    "irr": 0.0,
    "distributed_amount": {
      "amount": "0.00",
      "currency": "USD"
    },
    "committed_amount": {
      "amount": "0.00",
      "currency": "USD"
    },
    "paid_in_amount": {
      "amount": "0.00",
      "currency": "USD"
    },
    "total_return": {
      "amount": "0.00",
      "currency": "USD"
    }
  },
  "account_timeseries": [],
  "holdings_timeseries": []
}