Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datamaxi/datamaxi/cex_ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get(
res = self.query("/api/v1/ticker", params)

if pandas:
df = pd.DataFrame(res)
df = pd.DataFrame([res["data"]])
df = df.set_index("d")
return df
else:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "datamaxi"
version = "0.26.0"
version = "0.26.1"
authors = [
{ name="Bisonai", email="business@bisonai.com" },
]
Expand Down
1 change: 1 addition & 0 deletions tests/test_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def test_cex_candle():


def test_cex_ticker():
datamaxi.cex.ticker.get(exchange="binance", market="spot", symbol="BTC-USDT")
datamaxi.cex.ticker.exchanges(market="spot")
datamaxi.cex.ticker.symbols(exchange="binance", market="spot")

Expand Down