# External API (Gitbook)

The base URL of the external API of Aktionariat is: [https://ext.aktionariat.com/](https://ext.aktionariat.com/)

At the moment the following three endpoints are available:

* /token - for token details
* /price - for the current price
* /prices - for historical prices

In the following you see the API specification of the different calls you can make.

## Download OpenAPI specification:

{% file src="https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media" %}

## Getting all tokens from Aktionariat

{% openapi src="https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media" path="/tokens/" method="get" %}
[openapi.yaml](https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media)
{% endopenapi %}

## Getting token details for a specific ticker

{% openapi src="https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media" path="/tokens" method="get" %}
[openapi.yaml](https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media)
{% endopenapi %}

## Get current price of a token

{% openapi src="https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media" path="/price" method="get" %}
[openapi.yaml](https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media)
{% endopenapi %}

## Get price history of a token

{% openapi src="https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media" path="/prices" method="get" %}
[openapi.yaml](https://3315790276-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrqhZGLjlD9KVAOVTvhZo%2Fuploads%2Fgit-blob-dcfe273b32b3158c0f6897659e8a7e5df1209a51%2Fopenapi.yaml?alt=media)
{% endopenapi %}
