Skip to main content

Prediction market intelligence for agents and traders — Kalshi + Polymarket

Project description

veynor

Python client for the Veynor prediction market intelligence API.

Cross-venue data across Kalshi and Polymarket: whale trades, smart money signals, arb opportunities, and market search — in a single import.

pip install veynor

Quickstart

import veynor

client = veynor.Client(api_key="vey_sk_...")

# Whale trades across both venues
whales = client.whales(venue="all", min_notional=10_000)
for t in whales["trades"]:
    print(t["platform"], t["market"], t["side"], f"${t['notional']:,.0f}")

# Arb opportunities between Kalshi and Polymarket
arb = client.signals(signal_type="arb_opportunities")
for opp in arb["arb_opportunities"]:
    print(opp)

Get a free API key at veynor.xyz/agents.


Authentication

Pass your key directly or via environment variable:

# Option 1: direct
client = veynor.Client(api_key="vey_sk_...")

# Option 2: environment variable
# export VEYNOR_API_KEY=vey_sk_...
client = veynor.Client()

Methods

client.whales()

Recent large trades across Kalshi and Polymarket.

whales = client.whales(
    venue="all",           # "all" | "kalshi" | "polymarket"
    min_notional=8_000,    # minimum trade size in USD
    category="Politics",   # "All" | "Sports" | "Politics" | "Other"
    limit=20,
)
# Returns: { summary, trades: [...], meta }

client.top_markets()

Top markets by 24-hour volume.

markets = client.top_markets(
    venue="all",
    category="All",
    limit=10,
)
# Returns: { summary, kalshi: [...], polymarket: [...], meta }

client.search()

Search markets by keyword across both venues.

results = client.search("fed rate", venue="all", limit=10)
# Returns: { summary, polymarket: [...], kalshi: [...], meta }

client.market()

Full details for a specific market.

# Polymarket: use condition ID
m = client.market("polymarket", "0x1234...")

# Kalshi: use ticker
m = client.market("kalshi", "KXNBA-25-LAL")

# Returns: { summary, market: {...}, meta }

client.signals()

Alpha signals: wide spreads, price movers, cross-venue arb.

signals = client.signals(
    signal_type="all",   # "all" | "wide_spreads" | "price_movers" | "arb_opportunities"
    limit=10,
)
# Returns: { summary, wide_spreads, price_movers, arb_opportunities, meta }

client.usage()

Check your credit balance. Always free.

u = client.usage()
print(u["tier"], u["credits_remaining"])

Credit costs

Method Credits
whales() 2
top_markets() 1
search() 1
market() 1
signals() 3
usage() 0

Free tier: 100 credits/month. Upgrade at veynor.xyz/agents.


Exceptions

from veynor import VeynorError, AuthError, RateLimitError

try:
    whales = client.whales()
except AuthError:
    print("Invalid or expired API key")
except RateLimitError:
    print("Rate limit hit — slow down or upgrade tier")
except VeynorError as e:
    print(f"API error {e.status_code}: {e}")

Use in a Jupyter notebook

import veynor, pandas as pd

client = veynor.Client()
data   = client.whales(min_notional=15_000, limit=50)
df     = pd.DataFrame(data["trades"])
df[["market", "side", "notional", "platform"]].sort_values("notional", ascending=False)

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veynor-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veynor-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file veynor-1.0.0.tar.gz.

File metadata

  • Download URL: veynor-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for veynor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7050925d7b3f46b5ecff134273bc5cf7c90c209c5052fb94d70b0b79318a4f92
MD5 61b95b5870d66c71df5d07869b3ca051
BLAKE2b-256 6b87a15f5b2edf291d2abb57126a261dcd6da808391e44a70a32f09712664724

See more details on using hashes here.

File details

Details for the file veynor-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: veynor-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for veynor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f2a8a7eb735b2253f3393dab590bc7645a5493583df5f14cd1a426f355510b4
MD5 c411be5d053e529fa5782216a0dc44d0
BLAKE2b-256 33c3c8445a28fa8b9105059228c03b7ab5c3a6a92be8b835855439862b67bf15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page