# API-SDK
2.0.0a
## Requirements.
Python 3.7+
## Installation & Usage
### pip install
```sh
pip install SDK-Laevitas
```
Then import the package:
```python
from Laevitas import SDK
```
## Getting Started
Please follow the procedure and then run the following:
```python
from Laevitas import SDK
# create an instance of the API class
sdk = SDK.api()
# Configure your api key
sdk.configure('your-api-key')
# try different endpoints , endpoints return json format
top_traded_option = sdk.analytics.options.top_traded_option(market="DERIBIT",currency="BTC")
instrument_volume_buy_sell = sdk.historical.options.instrument_volume_buy_sell(market="DERIBIT",instrument="BTC-28JUN24-70000-C",start="2023-07-13",end="2023-07-20")
trades = sdk.historical.options.trades(currency="ETH",market="OKEX",date="2023-07-13")
```
## Documentation for available API Endpoints
https://api.laevitas.ch/swagger/#/
Raw data
{
"_id": null,
"home_page": "https://github.com/Laevitas/Laevitas-sdk",
"name": "SDK-Laevitas",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Elyes",
"author_email": "elyes@laevitas.ch",
"download_url": "https://files.pythonhosted.org/packages/e7/b6/c94bef9920ec39c9178afcb846f0232c77b20c0b6eba4b83e5c96719e021/SDK-Laevitas-2.0.0.tar.gz",
"platform": null,
"description": "# API-SDK\r\n2.0.0a \r\n## Requirements.\r\n\r\nPython 3.7+\r\n\r\n## Installation & Usage\r\n### pip install\r\n\r\n\r\n\r\n```sh\r\npip install SDK-Laevitas\r\n```\r\nThen import the package:\r\n```python\r\nfrom Laevitas import SDK \r\n```\r\n\r\n\r\n\r\n## Getting Started\r\n\r\nPlease follow the procedure and then run the following:\r\n\r\n```python\r\nfrom Laevitas import SDK\r\n\r\n# create an instance of the API class\r\nsdk = SDK.api()\r\n\r\n# Configure your api key\r\nsdk.configure('your-api-key')\r\n# try different endpoints , endpoints return json format\r\ntop_traded_option = sdk.analytics.options.top_traded_option(market=\"DERIBIT\",currency=\"BTC\")\r\ninstrument_volume_buy_sell = sdk.historical.options.instrument_volume_buy_sell(market=\"DERIBIT\",instrument=\"BTC-28JUN24-70000-C\",start=\"2023-07-13\",end=\"2023-07-20\")\r\ntrades = sdk.historical.options.trades(currency=\"ETH\",market=\"OKEX\",date=\"2023-07-13\") \r\n\r\n\r\n```\r\n\r\n## Documentation for available API Endpoints\r\nhttps://api.laevitas.ch/swagger/#/\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n",
"bugtrack_url": null,
"license": "apache-2.0",
"summary": "SDK",
"version": "2.0.0",
"project_urls": {
"Download": "https://github.com/Laevitas/Laevitas-sdk/archive/refs/tags/v2.0.0.tar.gz",
"Homepage": "https://github.com/Laevitas/Laevitas-sdk"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e7b6c94bef9920ec39c9178afcb846f0232c77b20c0b6eba4b83e5c96719e021",
"md5": "0f4531d3a074c0e2341a605bea3470ce",
"sha256": "315ac250264fedbb66dafec56dcf22b2813f9a5d63f709347b0fc94ae0602064"
},
"downloads": -1,
"filename": "SDK-Laevitas-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "0f4531d3a074c0e2341a605bea3470ce",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23272,
"upload_time": "2023-08-01T14:27:40",
"upload_time_iso_8601": "2023-08-01T14:27:40.683562Z",
"url": "https://files.pythonhosted.org/packages/e7/b6/c94bef9920ec39c9178afcb846f0232c77b20c0b6eba4b83e5c96719e021/SDK-Laevitas-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-01 14:27:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Laevitas",
"github_project": "Laevitas-sdk",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "sdk-laevitas"
}