Skip to content

Commit

Permalink
feat: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkersner committed Jul 18, 2024
1 parent afe273f commit 42ebcbb
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ All clients accept the same parameters that are described at [Configuration](#co
First, import the clients,

```python
# Main client
# Main client to access crypto trading data
from datamaxi.datamaxi import Datamaxi

# DeFi
Expand Down
12 changes: 9 additions & 3 deletions datamaxi/datamaxi/candle.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def __init__(self, api_key=None, **kwargs: Any):
super().__init__(api_key, **kwargs)

def exchanges(self, market: str = "spot") -> List[str]:
"""Fetch supported exchanges accepted by `datamaxi.candle` API
"""Fetch supported exchanges accepted by
[datamaxi.Candle.get](./#datamaxi.datamaxi.Candle.get)
API.
`GET /v1/candle/exchanges`
Expand All @@ -40,7 +42,9 @@ def exchanges(self, market: str = "spot") -> List[str]:
return self.query(url_path, params)

def symbols(self, exchange: str, market: str = "spot") -> List[str]:
"""Fetch supported symbols accepted by `datamaxi.candle` API
"""Fetch supported symbols accepted by
[datamaxi.Candle.get](./#datamaxi.datamaxi.Candle.get)
API.
`GET /v1/candle/symbols`
Expand Down Expand Up @@ -68,7 +72,9 @@ def symbols(self, exchange: str, market: str = "spot") -> List[str]:
return self.query(url_path, params)

def intervals(self, exchange: str, market: str = "spot") -> List[str]:
"""Fetch supported intervals accepted by `datamaxi.candle` API
"""Fetch supported intervals accepted by
[datamaxi.Candle.get](./#datamaxi.datamaxi.Candle.get)
API.
`GET /v1/candle/intervals`
Expand Down
8 changes: 6 additions & 2 deletions datamaxi/datamaxi/funding_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def __init__(self, api_key=None, **kwargs: Any):
super().__init__(api_key, **kwargs)

def exchanges(self) -> List[str]:
"""Fetch supported exchanges accepted by `datamaxi.funding_rate` API
"""Fetch supported exchanges accepted by
[datamaxi.FundingRate.get](./#datamaxi.datamaxi.FundingRate.get)
API.
`GET /v1/funding-rate/exchanges`
Expand All @@ -31,7 +33,9 @@ def exchanges(self) -> List[str]:
return self.query(url_path)

def symbols(self, exchange: str, market: str = "spot") -> List[str]:
"""Fetch supported symbols accepted by `datamaxi.funding_rate` API
"""Fetch supported symbols accepted by
[datamaxi.FundingRate.get](./#datamaxi.datamaxi.FundingRate.get)
API.
`GET /v1/funding-rate/symbols`
Expand Down
6 changes: 6 additions & 0 deletions docs/candle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Candle

::: datamaxi.datamaxi.Candle
options:
show_submodules: true
show_source: false
6 changes: 0 additions & 6 deletions docs/datamaxi.md

This file was deleted.

6 changes: 6 additions & 0 deletions docs/funding-rate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Funding Rate

::: datamaxi.datamaxi.FundingRate
options:
show_submodules: true
show_source: false
4 changes: 3 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ markdown_extensions:
nav:
- Main: index.md
- API: api.md
- Trading Data: datamaxi.md
- Datamaxi:
- Candle: candle.md
- Funding Rate: funding-rate.md
- Defillama: defillama.md
- Trend:
- Naver Trend: naver-trend.md
Expand Down

0 comments on commit 42ebcbb

Please sign in to comment.