mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
Merge rebrand from AI-Trader to AI-Trader-Server
Complete rebrand of project to reflect REST API service architecture: - Updated all documentation (README, guides, API reference) - Updated Docker configuration (compose, Dockerfile, images) - Updated all repository URLs to Xe138/AI-Trader-Server - Updated all Docker images to ghcr.io/xe138/ai-trader-server - Added fork acknowledgment crediting HKUDS/AI-Trader - Updated GitHub Actions workflows and shell scripts All 4 phases completed with validation checkpoints. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# AI-Trader API Reference
|
||||
# AI-Trader-Server API Reference
|
||||
|
||||
Complete reference for the AI-Trader REST API service.
|
||||
Complete reference for the AI-Trader-Server REST API service.
|
||||
|
||||
**Base URL:** `http://localhost:8080` (default)
|
||||
|
||||
@@ -672,7 +672,7 @@ Interactive API documentation available at:
|
||||
import requests
|
||||
import time
|
||||
|
||||
class AITraderClient:
|
||||
class AITraderServerClient:
|
||||
def __init__(self, base_url="http://localhost:8080"):
|
||||
self.base_url = base_url
|
||||
|
||||
@@ -720,7 +720,7 @@ class AITraderClient:
|
||||
return response.json()
|
||||
|
||||
# Usage
|
||||
client = AITraderClient()
|
||||
client = AITraderServerClient()
|
||||
job = client.trigger_simulation("2025-01-16", models=["gpt-4"])
|
||||
result = client.wait_for_completion(job["job_id"])
|
||||
results = client.get_results(job_id=job["job_id"])
|
||||
@@ -729,7 +729,7 @@ results = client.get_results(job_id=job["job_id"])
|
||||
### TypeScript/JavaScript
|
||||
|
||||
```typescript
|
||||
class AITraderClient {
|
||||
class AITraderServerClient {
|
||||
constructor(private baseUrl: string = "http://localhost:8080") {}
|
||||
|
||||
async triggerSimulation(
|
||||
@@ -788,7 +788,7 @@ class AITraderClient {
|
||||
}
|
||||
|
||||
// Usage
|
||||
const client = new AITraderClient();
|
||||
const client = new AITraderServerClient();
|
||||
const job = await client.triggerSimulation("2025-01-16", null, ["gpt-4"]);
|
||||
const result = await client.waitForCompletion(job.job_id);
|
||||
const results = await client.getResults({ jobId: job.job_id });
|
||||
|
||||
Reference in New Issue
Block a user