Skip to content

Commit 6f6076e

Browse files
committed
Prepare repository for GitHub
1 parent afa604b commit 6f6076e

10 files changed

Lines changed: 853 additions & 575 deletions

File tree

.env.example

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Local proxy used by the shell scripts and OpenAI-compatible clients.
2+
PROXY=127.0.0.1:10808
3+
OPENAI_PROXY=127.0.0.1:10808
4+
5+
# Primary OpenAI-compatible provider.
6+
OPENAI_API_KEY=
7+
OPENAI_BASE_URL=https://api.openai.com/v1
8+
OPENAI_API_MODE=responses
9+
OPENAI_MODEL=
10+
OPENAI_CHAT_STREAM=true
11+
OPENAI_CHAT_RESPONSE_FORMAT=json_object
12+
OPENAI_TEMPERATURE=0
13+
14+
# Backup provider.
15+
OPENAI_BACKUP_API_KEY=
16+
OPENAI_BACKUP_BASE_URL=
17+
OPENAI_BACKUP_API_MODE=chat
18+
OPENAI_BACKUP_MODEL=
19+
OPENAI_BACKUP_TIMEOUT=60
20+
21+
# Fallback provider.
22+
OPENAI_FALLBACK_API_KEY=
23+
OPENAI_FALLBACK_BASE_URL=
24+
OPENAI_FALLBACK_API_MODE=responses
25+
OPENAI_FALLBACK_MODEL=
26+
OPENAI_FALLBACK_TIMEOUT=60
27+
28+
# Oddpool free-plan configuration.
29+
ODDPOOL_PLAN=free
30+
ODDPOOL_BASE_URL=https://api.oddpool.com
31+
ODDPOOL_API_KEY=
32+
ODDPOOL_SEARCH_LIMIT=30
33+
ODDPOOL_SEARCH_EXCHANGE=
34+
ODDPOOL_INCLUDE_RECENT_EVENTS=0
35+
ODDPOOL_QUOTA_STATE=data/oddpool-quota.json
36+
ODDPOOL_MONTHLY_QUOTA=1000
37+
ODDPOOL_MIN_INTERVAL_SECONDS=1.05
38+
39+
# Notifications.
40+
ALERT_WEBHOOK_URL=
41+
TELEGRAM_BOT_TOKEN=
42+
TELEGRAM_CHAT_ID=
43+
DISCORD_WEBHOOK_URL=
44+
45+
# Live execution guardrails.
46+
POLY_STRATEGY_ALLOW_LIVE=0
47+
POLYMARKET_PRIVATE_KEY=
48+
POLYMARKET_CLOB_HOST=https://clob.polymarket.com
49+
POLYMARKET_CHAIN_ID=137
50+
POLYMARKET_CLOB_API_KEY=
51+
POLYMARKET_CLOB_API_SECRET=
52+
POLYMARKET_CLOB_PASSPHRASE=
53+

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11"
18+
19+
- name: Install
20+
run: python -m pip install --upgrade pip && pip install -e ".[dev,live]"
21+
22+
- name: Test
23+
run: pytest

.gitignore

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
11
__pycache__/
2-
*.pyc
3-
.DS_Store
2+
*.py[cod]
3+
*.pyo
4+
.pytest_cache/
5+
.mypy_cache/
6+
.ruff_cache/
7+
.coverage
8+
coverage.xml
9+
htmlcov/
10+
.tox/
11+
.nox/
412
.venv/
5-
data/
6-
var/
13+
venv/
14+
env/
15+
ENV/
16+
build/
17+
dist/
18+
*.egg-info/
19+
.eggs/
20+
.ipynb_checkpoints/
21+
22+
.DS_Store
23+
Thumbs.db
24+
.vscode/
25+
.idea/
726

8-
.env.local
27+
.env
28+
.env.*
29+
!.env.example
930
.envrc
31+
32+
data/
33+
var/
34+
*.log

0 commit comments

Comments
 (0)