portfolio-sync
Installation
SKILL.md
Portfolio Sync Skill
Real methods to fetch and sync positions from each prediction market platform.
Polymarket Position Sync
Polymarket positions are held as ERC-1155 tokens on Polygon. Query on-chain balances.
import os
import requests
WALLET = os.getenv("POLY_FUNDER_ADDRESS")
CTF_CONTRACT = "0x4D97DCd97eC945f40cF65F87097ACe5EA0476045" # Conditional Token Framework
def get_polymarket_positions(token_ids: list[str]) -> dict:
"""
Get balances for specific token IDs