Upload builderbrain/__init__.py
Browse files- builderbrain/__init__.py +34 -6
builderbrain/__init__.py
CHANGED
|
@@ -7,28 +7,56 @@ produces structured probabilities and reasoning traces, and routes orders via
|
|
| 7 |
Polymarket builder codes, settling capital and paying per-trade micropayments
|
| 8 |
over Arc using USDC Nanopayments and Gateway.
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
References:
|
| 11 |
- Tepelyan (Bloomberg, 2026): Efficient Multivariate Kelly Optimization
|
| 12 |
-
via Laplace quadrature. We implement a convex QP approximation achieving
|
| 13 |
-
95%+ solution quality in <10ms for 100+ markets.
|
| 14 |
- Canteen (2026): Unbundling the Prediction Market Stack — Layer 5 Intelligence
|
| 15 |
"""
|
| 16 |
|
| 17 |
__version__ = "0.1.0"
|
| 18 |
__author__ = "razvan"
|
| 19 |
|
| 20 |
-
from .quant_engine import KellyEngine, CorrelationMatrix
|
| 21 |
-
from .polymarket_client import PolymarketClient, BuilderCodeRouter
|
| 22 |
-
from .reasoning_agent import ReasoningAgent, TradeSignal
|
| 23 |
-
from .arc_bridge import ArcBridge, NanopaymentConfig
|
|
|
|
|
|
|
| 24 |
|
| 25 |
__all__ = [
|
|
|
|
|
|
|
|
|
|
| 26 |
"KellyEngine",
|
| 27 |
"CorrelationMatrix",
|
|
|
|
|
|
|
|
|
|
| 28 |
"PolymarketClient",
|
| 29 |
"BuilderCodeRouter",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
"ReasoningAgent",
|
| 31 |
"TradeSignal",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
"ArcBridge",
|
| 33 |
"NanopaymentConfig",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
]
|
|
|
|
| 7 |
Polymarket builder codes, settling capital and paying per-trade micropayments
|
| 8 |
over Arc using USDC Nanopayments and Gateway.
|
| 9 |
|
| 10 |
+
Built for the **Agora Agents Hackathon** (Canteen × Circle).
|
| 11 |
+
|
| 12 |
+
DUAL MODE:
|
| 13 |
+
- SIMULATED (default): Runs hackathon demo without API keys
|
| 14 |
+
- REAL: Connect to live Circle/Arc/Polymarket APIs with credentials
|
| 15 |
+
|
| 16 |
References:
|
| 17 |
- Tepelyan (Bloomberg, 2026): Efficient Multivariate Kelly Optimization
|
|
|
|
|
|
|
| 18 |
- Canteen (2026): Unbundling the Prediction Market Stack — Layer 5 Intelligence
|
| 19 |
"""
|
| 20 |
|
| 21 |
__version__ = "0.1.0"
|
| 22 |
__author__ = "razvan"
|
| 23 |
|
| 24 |
+
from .quant_engine import KellyEngine, CorrelationMatrix, MarketEdge, Position
|
| 25 |
+
from .polymarket_client import PolymarketClient, BuilderCodeRouter, PolymarketMarket, OrderIntent, BuilderCode
|
| 26 |
+
from .reasoning_agent import ReasoningAgent, TradeSignal, ReasoningTrace, DataSource, Argument, RiskFactor
|
| 27 |
+
from .arc_bridge import ArcBridge, NanopaymentConfig, WalletConfig, USYCConfig, GatewayRoute
|
| 28 |
+
from .circle_gateway_client import CircleGatewayClient, GatewayDomain, GatewayBalance, TransferAttestation
|
| 29 |
+
from .pipeline import BuilderBrain
|
| 30 |
|
| 31 |
__all__ = [
|
| 32 |
+
# Core
|
| 33 |
+
"BuilderBrain",
|
| 34 |
+
# Quant
|
| 35 |
"KellyEngine",
|
| 36 |
"CorrelationMatrix",
|
| 37 |
+
"MarketEdge",
|
| 38 |
+
"Position",
|
| 39 |
+
# Polymarket
|
| 40 |
"PolymarketClient",
|
| 41 |
"BuilderCodeRouter",
|
| 42 |
+
"PolymarketMarket",
|
| 43 |
+
"OrderIntent",
|
| 44 |
+
"BuilderCode",
|
| 45 |
+
# Reasoning
|
| 46 |
"ReasoningAgent",
|
| 47 |
"TradeSignal",
|
| 48 |
+
"ReasoningTrace",
|
| 49 |
+
"DataSource",
|
| 50 |
+
"Argument",
|
| 51 |
+
"RiskFactor",
|
| 52 |
+
# Arc/Circle
|
| 53 |
"ArcBridge",
|
| 54 |
"NanopaymentConfig",
|
| 55 |
+
"WalletConfig",
|
| 56 |
+
"USYCConfig",
|
| 57 |
+
"GatewayRoute",
|
| 58 |
+
"CircleGatewayClient",
|
| 59 |
+
"GatewayDomain",
|
| 60 |
+
"GatewayBalance",
|
| 61 |
+
"TransferAttestation",
|
| 62 |
]
|