More or less as described here. My ideal use case would be to put up some Ṁ amount associated with a specific (probably curated) group of markets, paid out to the top N bettors (or all bettors?) proportional to their winnings on a specific date (or maybe once all markets have resolved).
If you implement this feature, leave a comment and I'll award you the bounty.
If you want this feature too, add to the bounty! Click the three dots at the top right, then "Add bounty".
import json
import os
import requests
for market in requests.get('https://manifold.markets/api/v0/group/by-id/XXXXXXX/markets').json():
body = {
"amount": 1,
}
headers = {
"Authorization": f"Key {os.getenv('API_KEY')}"
}
print(requests.post('https://manifold.markets/api/v0/market/' + market['id'] + '/add-liquidity', json=body, headers=headers).json())
API is down, so I haven't tested that Python script, but should just need to configure group ID, amount, and set your API key (from https://manifold.markets/profile) there
Would this bounty only be paid out for a feature implemented on this site? I was actually thinking of creating a third party site to host tournaments at.