Skip to main content

Python SDK for the Market Motion intelligence API. Search 25K+ entities, scan cross-venue arbitrage, monitor alerts, and access the entity graph.

Project description

marketmotion

Python SDK for the Market Motion intelligence API. Search 25K+ entities, scan cross-venue arbitrage, monitor alerts, and access the entity graph.

Install

pip install marketmotion

Quick Start

from marketmotion import MotionClient

client = MotionClient(api_key="mk_...")

# Search entities — returns { "entities": [...], "pagination": {...} }
results = client.search_entities("bitcoin")
for e in results["entities"]:
    print(e["displayName"])

# Get entity with market exposure — returns { "entity": {...}, "markets": [...] }
data = client.get_entity("crypto-l1-btc")
print(f"{data['entity']['displayName']}: {len(data['markets'])} markets")

# Cross-venue arbitrage — returns { "mispricings": [...] }
arbs = client.get_mispricings(min_spread=5)

# Signal feed — returns { "signals": [...], "pagination": {...} }
signals = client.get_signal_feed(limit=20)
for s in signals["signals"]:
    print(s["type"], s["title"])

Note: The SDK automatically unwraps the API's { success, data } envelope. You get the data payload directly — no need to dig into result["data"].

Configuration

# Option 1: Pass directly
client = MotionClient(api_key="mk_...", base_url="https://api.marketmotion.xyz")

# Option 2: Environment variables
# MOTION_API_KEY=mk_...
# MOTION_API_URL=https://api.marketmotion.xyz
client = MotionClient()

API Coverage

Category Methods
Entities search_entities, get_entity, get_entity_attributes, get_entity_graph, get_entity_related
Markets search_markets, filter_markets, get_prediction_markets, get_hyperliquid_markets, get_price_history, get_cross_venue_markets
Intelligence get_entity_isq, get_entity_sentiment, get_intelligence_brief, get_entity_rumors
Arbitrage get_mispricings, get_cross_venue_markets, get_movers
Alerts get_alerts, get_signal_feed
News get_trending_news, get_entity_news, get_market_news, get_news_by_category
Forecasts get_forecast_history, get_forecast_accuracy
Trading place_polymarket_order, place_hyperliquid_order, get_positions
Webhooks list_webhooks, create_webhook, delete_webhook
Account validate_key, get_user_profile, get_watchlist

Error Handling

from marketmotion import MotionClient, ApiError

try:
    entity = client.get_entity("nonexistent")
except ApiError as e:
    print(e.status)   # 404
    print(e.body)     # {"success": false, "error": "Entity not found"}

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

marketmotion-1.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

marketmotion-1.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file marketmotion-1.1.0.tar.gz.

File metadata

  • Download URL: marketmotion-1.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.2

File hashes

Hashes for marketmotion-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f6e866703f685c574ec6af847ffdda8ce915480df4a829e0d3e0684f086d2547
MD5 999d1a6287fee05815efdf6771a236c1
BLAKE2b-256 6c49725b62a32516381e3d3fa939a4a2b745765d023cf7203075eca58b12db15

See more details on using hashes here.

File details

Details for the file marketmotion-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: marketmotion-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.2

File hashes

Hashes for marketmotion-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1358a76275cb9a0650358c557196cab6e17c0686ed93419298c95408fcdc4bc
MD5 1cd4dd85691d840303cc508cd674a465
BLAKE2b-256 807302b121c52d82f8076e09a17574cc6c6f86a687b794f676de19b3d4e8aede

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