Skip to content

Instantly share code, notes, and snippets.

@tolbard
Last active January 14, 2016 22:32
Show Gist options
  • Save tolbard/2d101bb100789412a58e to your computer and use it in GitHub Desktop.
Save tolbard/2d101bb100789412a58e to your computer and use it in GitHub Desktop.
Footy Tab Bet Specific or Generic json structure.
[{
"type": "FOOTY",
"competition": "NRL",
"betType": "PICK_THE_WINNERS",
"stake": "$2.00",
"flexi": true,
"date": "2016-03-23",
"matches": [
{"legs": [
{"selections": ["H"]}
]},
{"legs": [
{"selections": ["H","A"]}
]},
{"legs": [
{"selections": ["A"]}
]},
]
},
{
"type": "FOOTY",
"competition": "NRL",
"betType": "PICK_THE_SCORES",
"stake": "$1.00",
"flexi": false,
"date": "2016-03-23",
"matchNumber": 3,
"matches": [
{"legs": [
{"selections": [48]},
{"selections": [0,1,2]}
]},
]
},
{
"type": "FOOTY",
"competition": "NRL",
"betType": "PICK_THE_MARGINS",
"stake": "$3.00",
"flexi": false,
"date": "2016-03-23",
"matches": [
{"legs": [
{"selections": ["ALL"]}
]},
{"legs": [
{"selections": [0,1]}
]},
{"legs": [
{"selections": [4,5]}
]},
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "PICK_THE_WINNERS",
"stake": "$2.00",
"flexi": true,
"date": "2016-03-23",
"matches": [
{"legs": [
{"selections": ["H","A"]}
]},
{"legs": [
{"selections": ["H","A"]}
]},
{"legs": [
{"selections": ["A"]}
]},
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "PICK_THE_MARGINS",
"stake": "$3.00",
"flexi": false,
"date": "2016-03-23",
"matches": [
{"legs": [
{"selections": ["ALL"]}
]},
{"legs": [
{"selections": [0,"MYSTERY"]}
]},
{"legs": [
{"selections": [4,5]}
]},
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "WIN",
"stake": "$3.00",
"flexi": false,
"date": "2016-03-23",
"matchNumber": 3,
"matches": [
{"legs": [
{"selections": [1,2]}
]}
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "QUAD",
"stake": "$0.50",
"flexi": false,
"date": "2016-03-23",
"matches": [
{"legs": [
{"selections": [1,2]}
]},
{"legs": [
{"selections": [7,8,9]}
]},
{"legs": [
{"selections": [16]}
]},
{"legs": [
{"selections": [3,4]}
]},
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "QUARTER_QUAD",
"stake": "$3.50",
"flexi": false,
"date": "2016-03-23",
"matches": [
{"legs": [
{"selections": [2,3]}
{"selections": [3]},
{"selections": [1]},
{"selections": [8]}
]},
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "DOUBLE",
"stake": "$3.50",
"date": "2016-03-21",
"matches": [
{"legs": [
{"selections": [2,3]}
]},
{"legs": [
{"selections": [3,4]}
]}
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "HALF_DOUBLE",
"stake": "$1.50",
"flexi": false,
"date": "2016-03-20",
"matches": [
{"legs": [
{"selections": [10]},
{"selections": [12]}
]},
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "XTRA_DOUBLE",
"stake": "$3.50",
"flexi": false,
"date": "2016-03-23",
"matches": [
{"legs": [
{"selections": [2,3]}
]},
{"legs": [
{"selections": [3,4]}
]}
]
},
{
"type": "FOOTY",
"competition": "AFL",
"betType": "HALF_XTRA_DOUBLE",
"stake": "$1.50",
"flexi": false,
"date": "2016-03-13",
"matches": [
{"legs": [
{"selections": [10]},
{"selections": [12]}
]},
]
}
]
@nguyenchr
Copy link

@vickvu I agree, have a look at my first comment, I called it sportType not sure whether that is better or not?

@tolbard
Copy link
Author

tolbard commented Jan 12, 2016

@nguyenchr @vickvu what do you think about betTypeGroup

@tolbard
Copy link
Author

tolbard commented Jan 12, 2016

@nguyenchr After I read again you first comment I got It. I can use sportType : "NRL" or "AFL"

@tolbard
Copy link
Author

tolbard commented Jan 12, 2016

instead of sportType why not use competiton as "NRL" and "AFL" are sport competition

@tolbard
Copy link
Author

tolbard commented Jan 12, 2016

{
  "type": "FOOTY",
  "competition": "NRL",
  "betType": "PICK_THE_MARGINS",
  "stake": "$3.00",
  "flexi": false,
  "matches": [
    ["ALL"],
    [0,1],
    [4,5]
  ]
},

@alexdeem
Copy link

s/matchs/matches/ :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment