Server running at http://marketserver.staging.autonolas.tech.
This server is used to obtain user approval of automatically proposed prediction markets:
proposed_markets database).approved_markets or rejected_markets, respectively.approved_markets database and process them. Processed markets are placed on the processed_markets database.market_id endpointsRequires to know the market_id:
/proposed_market/market_id: Marked in "Proposed markets" database/approved_market/market_id: Marked in "Approved markets" database/rejected_market/market_id: Marked in "Rejected markets" database/processed_market/market_id: Marked in "Processed markets" database/market/market_id: Marked in any databasemarket_idsAll market_ids must be lowercase. The server will always convert received market IDs to lowercase before storing or modifying the IDs of any market on the database.
curl -X POST -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id": "market_id"}' -k http://marketserver.staging.autonolas.tech/approve_market
curl -X POST -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id": "market_id"}' -k http://marketserver.staging.autonolas.tech/reject_market
curl -X POST -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id": "market_id", ...}' -k http://marketserver.staging.autonolas.tech/propose_market
curl -X POST -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id": "market_id"}' -k http://marketserver.staging.autonolas.tech/process_market
curl -X PUT -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id": "market_id", ...}' -k http://marketserver.staging.autonolas.tech/update_market
curl -X PUT -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id": "market_id", "new_id": "new_market_id"}' -k http://marketserver.staging.autonolas.tech/update_market_id
curl -X POST -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -k http://marketserver.staging.autonolas.tech/get_process_random_approved_market
proposed_markets database:
curl -X DELETE -H "Authorization: YOUR_API_KEY" -k http://marketserver.staging.autonolas.tech/clear_proposed_markets
approved_markets database:
curl -X DELETE -H "Authorization: YOUR_API_KEY" -k http://marketserver.staging.autonolas.tech/clear_approved_markets
rejected_markets database:
curl -X DELETE -H "Authorization: YOUR_API_KEY" -k http://marketserver.staging.autonolas.tech/clear_rejected_markets
processed_markets database:
curl -X DELETE -H "Authorization: YOUR_API_KEY" -k http://marketserver.staging.autonolas.tech/clear_processed_markets
curl -X DELETE -H "Authorization: YOUR_API_KEY" -k http://marketserver.staging.autonolas.tech/clear_all