prod deployment

This commit is contained in:
2026-04-01 18:34:08 -04:00
parent ca44e68f64
commit eab581f8cb
62 changed files with 1922 additions and 286 deletions

View File

@@ -1,5 +1,5 @@
"""
DexOrder Trading Platform Python Client
Dexorder Trading Platform Python Client
Provides high-level APIs for:
- Historical OHLC data retrieval with smart caching

View File

@@ -1,5 +1,5 @@
"""
DexOrder API - market data and charting for research and trading.
Dexorder API - market data and charting for research and trading.
For research scripts, import and use get_api() to access the API:

View File

@@ -1,5 +1,5 @@
"""
Main DexOrder API - provides access to market data and charting.
Main Dexorder API - provides access to market data and charting.
"""
import logging

View File

@@ -64,8 +64,10 @@ class ChartingAPI(ABC):
)
# Overlay moving average
# NOTE: mplfinance uses integer x-positions (0..N-1) internally,
# so overlays must use range(len(df)), not df.index.
fig, ax = api.plot_ohlc(df)
ax.plot(df.index, df['sma_20'], label="SMA 20", color="blue")
ax.plot(range(len(df)), df['sma_20'], label="SMA 20", color="blue")
ax.legend()
"""
pass

View File

@@ -134,16 +134,11 @@ class ChartingAPIImpl(ChartingAPI):
new_ax.sharex(existing_axes[0])
# Plot the indicator data
# mplfinance uses integer x-positions (0..N-1) internally, so we must
# use range(len(df)) to align with the candlestick axes.
for col in columns:
if col in df.columns:
# Handle potential timestamp index (convert from microseconds)
if df.index.name == 'timestamp' or 'timestamp' in str(df.index.dtype):
# Assume nanoseconds, convert to datetime
plot_index = pd.to_datetime(df.index, unit='ns')
else:
plot_index = df.index
new_ax.plot(plot_index, df[col], label=col, **kwargs)
new_ax.plot(range(len(df)), df[col], label=col, **kwargs)
# Styling
if ylabel: