Hi guys, can someone tell me what's wrong with this curl post?
# Execute the curl command and save response to a file
curl -s -X POST --header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "X-Application: $APP_KEY" \
--header "X-Authentication: $SESSION_TOKEN" \
--data '[{
"jsonrpc":"2.0",
"method":"SportsAPING/v1.0/listMarketBook",
"params": {
"marketIds": ['$MARKET_IDS'],
"priceProjection": {
"priceData": "EX_BEST_OFFERS"},
"orderProjection": "EXECUTABLE",
"matchProjection" :"ROLLED_UP_BY_AVG_PRICE"},
"id":1
}]' \
$HOST > "$OUTPUT_DIR/football_markets_Prices.json"
heres the ouput: [{"jsonrpc":"2.0","error":{"code":-32602,"message":"DSC-0018"},"id":1}]
# Execute the curl command and save response to a file
curl -s -X POST --header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "X-Application: $APP_KEY" \
--header "X-Authentication: $SESSION_TOKEN" \
--data '[{
"jsonrpc":"2.0",
"method":"SportsAPING/v1.0/listMarketBook",
"params": {
"marketIds": ['$MARKET_IDS'],
"priceProjection": {
"priceData": "EX_BEST_OFFERS"},
"orderProjection": "EXECUTABLE",
"matchProjection" :"ROLLED_UP_BY_AVG_PRICE"},
"id":1
}]' \
$HOST > "$OUTPUT_DIR/football_markets_Prices.json"
heres the ouput: [{"jsonrpc":"2.0","error":{"code":-32602,"message":"DSC-0018"},"id":1}]


Comment