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
results = client.search_entities("bitcoin")

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

# Cross-venue arbitrage
arbs = client.get_mispricings(min_spread=5)

# Signal feed
signals = client.get_signal_feed(limit=20)

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.0.0.tar.gz (5.6 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.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for marketmotion-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1a96e11384996b2567552fda665265c3a3d81fed3bfaaa3c69d17c13fa250df2
MD5 c7bbd41590d51e57777f34e61646ca3d
BLAKE2b-256 24fee025f79c7b52173692a97141caea7e223f7d43670d04a8e236f5c26101ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: marketmotion-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d2f7002d2c8efb72e2c5b83bd9e945c3e9c1f58b35f9854cf1dccf17344a474
MD5 bba9cf2095ae0c2a870828e768620c6f
BLAKE2b-256 4df6c0e9cb13328657dc90c4fb1e39328438651dc6923323c8971a81153e75b0

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