data timeout fixes; research agent improvements
This commit is contained in:
@@ -17,14 +17,21 @@ Documents should be in Markdown format with:
|
||||
- Code examples where relevant
|
||||
- Cross-references to other docs
|
||||
|
||||
### Frontmatter Fields
|
||||
|
||||
`description` (required) — One or two sentences describing what the article covers. This is injected into every agent's system prompt as a KB catalog so agents know what to look up without making an extra tool call.
|
||||
|
||||
`tags` (optional) — List of topic tags for categorization.
|
||||
|
||||
### Example with Frontmatter
|
||||
|
||||
```markdown
|
||||
---
|
||||
tags: [trading, risk-management, position-sizing]
|
||||
description: "Patterns for writing custom Python indicator scripts that compute values from OHLCV data and plot live on the chart."
|
||||
tags: [indicators, python, development]
|
||||
---
|
||||
|
||||
# Risk Management
|
||||
# Custom Indicator Development
|
||||
|
||||
Content here...
|
||||
```
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
description: "Complete Python API reference (DataAPI and ChartingAPI) with full source and docstrings for use in research scripts."
|
||||
---
|
||||
|
||||
# Dexorder Research API Reference
|
||||
|
||||
This file contains the complete Python API source code with full docstrings.
|
||||
@@ -124,11 +128,14 @@ class DataAPI(ABC):
|
||||
- pandas Timestamp: pd.Timestamp("2021-12-20")
|
||||
end_time: End of time range. Same formats as start_time.
|
||||
extra_columns: Optional additional columns to include beyond the standard
|
||||
OHLC columns. Available options:
|
||||
- "volume" - Total volume (decimal float)
|
||||
- "buy_vol" - Buy-side volume (decimal float)
|
||||
- "sell_vol" - Sell-side volume (decimal float)
|
||||
- "open_time", "high_time", "low_time", "close_time" (timestamps)
|
||||
OHLC columns. Available options (all populated for Binance data):
|
||||
- "volume" - Total base-asset volume (decimal float)
|
||||
- "buy_vol" - Taker buy volume in base asset (decimal float)
|
||||
- "sell_vol" - Taker sell volume in base asset (decimal float)
|
||||
- "quote_volume" - Total quote-asset volume, e.g. USDT (decimal float)
|
||||
- "num_trades" - Number of trades in the candle (integer)
|
||||
- "open_time", "close_time" (nanosecond timestamps; Binance only)
|
||||
- "high_time", "low_time" (not provided by any exchange; always null)
|
||||
- "open_interest" (for futures markets)
|
||||
- "ticker", "period_seconds"
|
||||
|
||||
@@ -201,8 +208,8 @@ class DataAPI(ABC):
|
||||
length: Number of most recent candles to return (default: 1)
|
||||
extra_columns: Optional list of additional column names to include.
|
||||
Same column options as historical_ohlc:
|
||||
- "volume", "buy_vol", "sell_vol"
|
||||
- "open_time", "high_time", "low_time", "close_time"
|
||||
- "volume", "buy_vol", "sell_vol", "quote_volume", "num_trades"
|
||||
- "open_time", "close_time", "high_time", "low_time"
|
||||
- "open_interest", "ticker", "period_seconds"
|
||||
|
||||
Returns:
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
description: "API and patterns for writing custom Python indicator scripts that compute values from OHLCV data and plot live on the chart."
|
||||
---
|
||||
|
||||
# Custom Indicator Development
|
||||
|
||||
Custom indicators are Python scripts saved in the `indicator` category. They compute values from OHLCV data and are plotted live on the TradingView chart alongside built-in indicators.
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
description: "Full catalog of technical indicators available via pandas-ta, with parameters and usage for research scripts and custom indicators."
|
||||
---
|
||||
|
||||
# pandas-ta Reference for Research Scripts
|
||||
|
||||
This catalog applies to both research scripts and custom indicators. For usage in research scripts see [`usage-examples.md`](usage-examples.md). For writing custom indicator scripts (with metadata for the TradingView plotter) see [`indicators/indicator-development.md`](indicators/indicator-development.md).
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
description: "User sandbox lifecycle, persistent script storage categories, and session management for indicator, strategy, and research scripts."
|
||||
---
|
||||
|
||||
# User Sandbox
|
||||
|
||||
Each user has a dedicated sandbox environment that persists their data across sessions.
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
description: "Workspace store schema, available stores, and WorkspaceRead/WorkspacePatch usage for reading and updating the user's UI state."
|
||||
---
|
||||
|
||||
# Workspace
|
||||
|
||||
The Workspace is the user's current UI context — what they are looking at, what is selected, and what persistent state belongs to their session. It is a collection of named **stores** that are kept in sync between the web client, the gateway, and the user's sandbox container.
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
description: "PandasStrategy class API, order placement, backtesting, and paper trading patterns for automated crypto strategy development."
|
||||
---
|
||||
|
||||
# Strategy Development Guide
|
||||
|
||||
Strategies on Dexorder are `PandasStrategy` subclasses that receive a live stream of OHLCV bars and call `self.buy()` / `self.sell()` / `self.flatten()` to place orders.
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
description: "Technical analysis fundamentals covering chart patterns, trend analysis, and TA concepts applicable to crypto OHLCV data."
|
||||
---
|
||||
|
||||
# Technical Analysis Fundamentals
|
||||
|
||||
Technical analysis is the study of historical price and volume data to identify patterns and predict future market movements.
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
description: "Example research scripts showing common patterns for data retrieval, statistical analysis, and visualization."
|
||||
---
|
||||
|
||||
# Research Script API Usage
|
||||
|
||||
See [`api-reference.md`](api-reference.md) for the full DataAPI and ChartingAPI source with all method signatures and docstrings. See [`pandas-ta-reference.md`](pandas-ta-reference.md) for the indicator catalog.
|
||||
@@ -75,11 +79,16 @@ print(df.head())
|
||||
|
||||
### Available Extra Columns
|
||||
|
||||
- `"volume"` - Total volume
|
||||
- `"buy_vol"` - Buy-side volume
|
||||
- `"sell_vol"` - Sell-side volume
|
||||
- `"open_time"`, `"high_time"`, `"low_time"`, `"close_time"` - Timestamps for each price point
|
||||
- `"open_interest"` - Open interest (for futures)
|
||||
All columns below are fully populated for Binance data. Other exchanges provide only `volume`.
|
||||
|
||||
- `"volume"` - Total base-asset volume
|
||||
- `"buy_vol"` - Taker buy volume (base asset) — order flow long pressure
|
||||
- `"sell_vol"` - Taker sell volume (base asset) — order flow short pressure
|
||||
- `"quote_volume"` - Total quote-asset volume (e.g. USDT traded)
|
||||
- `"num_trades"` - Number of individual trades in the candle
|
||||
- `"open_time"`, `"close_time"` - Exact candle open/close timestamps (Binance only)
|
||||
- `"high_time"`, `"low_time"` - Not provided by any exchange (always null)
|
||||
- `"open_interest"` - Open interest (futures only)
|
||||
- `"ticker"` - Market identifier
|
||||
- `"period_seconds"` - Period in seconds
|
||||
|
||||
|
||||
Reference in New Issue
Block a user