Football matches collection is not total.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Marcmc
    Junior Member
    • Feb 2023
    • 2

    #1

    Football matches collection is not total.

    I created a bash shell script to get data from football matches and it worked for years, but only now I realized that it can't collect all the matches of the day and I put the date and time of start and end correctly. I'm using curl on this collection. The syntax I use is as follows:

    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/listMarketCatalogue", "params": {"filter":{ "eventTypeIds":[$SOCCER_ID],"marketTypeCodes" :["MATCH_ODDS"],"marketStartTime":{"from":"$DATE_START","t o" :"$DATE_END"}},"sort":"FIRST_TO_START","max Results":"$MAX_RESULTS","marketProjection":["EVENT"]}, "id": 1}]" $HOST/json-rpc/v1

    Is there something I'm getting wrong in the syntax? I repeat, I manage to get a fair amount of games but not all.​
  • Marcmc
    Junior Member
    • Feb 2023
    • 2

    #2
    I found the cause, the end date is the next day and the time is 03:00:00. I was putting as end date, the current day and time 23:59:00.

    Comment

    Working...
    X