-
Notifications
You must be signed in to change notification settings - Fork 14
/
b2b betsapi-oas.yaml
1742 lines (1684 loc) · 55.2 KB
/
b2b betsapi-oas.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
version: 2.2.7
title: Pinnacle - B2B Bets API Reference
description: |
B2B API to place bets. Main difference comparing to the Public Bets API is that B2B Bets API captures unique id off the actual bettor in the partner's system.
It should be used in the conjunction with the Public API to get the fixtures, odds and bets.
# Authentication
Access is restricted by IP address. Partner would have to provide the list of IP addresses from where it would access the API.
B2B API authentication requires both:
- [HTTP Basic access authentication](https://en.wikipedia.org/wiki/Basic_access_authentication)
- Api key authentication
Partner key identifies the partner and can be used with any client credentials partner may have.
Pinnacle will provide the api key (partner key) upon approval to use the B2B API.
You need to send `Authorization ` and `X-PARTNER-KEY` HTTP headers, e.g.
```
POST /b2b/v2/bets/straight HTTP/1.1
User-Agent: Apache-HttpClient/4.5.2
Host: api.pinnacle.com
Authorization: Basic am9uYXRoYW46cmljaG1hbg==
Accept-Encoding: gzip, deflate
X-Partner-Key: B4B480D3-EB1B-44DB-AA9C-197A229EF717
Connection: Keep-Alive
```
x-logo:
url: >-
https://avatars2.githubusercontent.com/u/31601407?s=400&u=f3c6e1cfc8a26665e4a4df6d8da4a7ee527aeceb&v=4
servers:
- url: 'https://api.pinnacle.com/'
description: Production server
paths:
/b2b/v2/bets/straight:
post:
tags:
- Place Bets
summary: Place straight bets.
operationId: Bets_Straight
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MultiBetStraightResponse'
'400':
description: BadRequest
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: InternalServerError
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseWithErrorRef'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MultiBetStraightRequest'
description: The Place Straight Bet request.
required: true
/b2b/v1/bets/special:
post:
tags:
- Place Bets
summary: Place specials bets.
operationId: Bets_Special
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MultiBetSpecialBetResponse'
'400':
description: BadRequest
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: InternalServerError
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseWithErrorRef'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MultiBetSpecialBetRequest'
description: The Place Special Bet request.
required: true
/b2b/v2/bets/parlay:
post:
tags:
- Place Bets
summary: Place parlay bets.
operationId: Bets_Parlay
requestBody:
required: true
description: Place Parlay Bet request
content:
application/json:
schema:
$ref: '#/components/schemas/PlaceParlayBetRequest'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PlaceParlayBetResponse'
'400':
description: BadRequest
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: InternalServerError
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseWithErrorRef'
/b2b/v1/bets/teaser:
post:
tags:
- Place Bets
summary: Place teaser bets.
operationId: Bets_Teaser
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MultiBetTeaserResponse'
'400':
description: BadRequest
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: InternalServerError
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseWithErrorRef'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MultiBetTeaserRequest'
description: The PlaceTeaser request.
required: true
components:
securitySchemes:
partnerKey:
type: apiKey
name: X-PARTNER-KEY
in: header
basicAuth:
type: http
scheme: basic
schemas:
# Straight Bet
MultiBetStraightRequest:
type: object
properties:
bets:
type: array
description: The individual bets.
items:
$ref: '#/components/schemas/StraightBetRequest'
description: ''
StraightBetRequest:
type: object
properties:
uniqueRequestId:
type: string
format: uuid
example: 10924E23-A2FE-4317-BFFD-80504675F554
description: Client generated GUID for uniquely identifying the bet.
acceptBetterLine:
type: boolean
oddsFormat:
$ref: '#/components/schemas/OddsFormat'
winRiskStake:
type: string
description: Whether the stake amount is risk or win amount. Options are `WIN` or `RISK`
enum:
- WIN
- RISK
stake:
type: number
format: double
example: 1.23
description: amount in client’s currency.
betType:
type: string
example: SPREAD
description: 'Type of the bet'
enum:
- MONEYLINE
- SPREAD
- TOTAL_POINTS
- TEAM_TOTAL_POINTS
sportId:
type: integer
format: int32
description: Sport identification
example: 29
eventId:
type: integer
format: int64
description: Event identification
example: 4568956
periodNumber:
type: integer
format: int32
description: Period number. Ex. for soccer, 0 = Match, 1 = First Half
example: 0
lineId:
type: integer
format: int64
description: Line identification that bet was placed on.
example: 546546125
altLineId:
type: integer
format: int64
description: Alternate line identification that bet was placed on.
example: 87456166512
fillType:
type: string
enum:
- NORMAL
- FILLANDKILL
- FILLMAXLIMIT
default: NORMAL
description: >
`NORMAL` - bet will be placed on specified stake.
`FILLANDKILL` - If the stake is over the max limit, bet will be placed on max limit, otherwise it will be placed on specified stake.
`FILLMAXLIMIT` - bet will be places on max limit, stake amount will be ignored. Please note that maximum limits can change at any moment, which may result in risking more than anticipated.
team:
type: string
description: Chosen Team. Required for SPREAD, MONEYLINE or TEAM_TOTAL_POINTS bet types.
enum:
- TEAM1
- TEAM2
- DRAW
side:
type: string
description: Chosen side type. Required for TOTAL_POINTS or TEAM_TOTAL_POINTS bet types.
enum:
- OVER
- UNDER
externalRef:
description: Bet reference identifier in the partner's system.
example: 12345
type: string
sourceId:
description: Bettor identifier in the partner's system.
example: ABC1234
type: string
ext:
$ref: '#/components/schemas/PlaceBetExtension'
MultiBetStraightResponse:
type: object
properties:
bets:
type: array
description: The individual bets.
items:
$ref: '#/components/schemas/StraightBetResponse'
description: ''
StraightBetResponse:
type: object
properties:
status:
type: string
description: Status of the request.
enum:
- ACCEPTED
- PENDING_ACCEPTANCE
- PROCESSED_WITH_ERROR
errorCode:
type: string
description: ''
enum:
- ABOVE_EVENT_MAX
- ABOVE_MAX_BET_AMOUNT
- ALL_BETTING_CLOSED
- ALL_LIVE_BETTING_CLOSED
- BELOW_MIN_BET_AMOUNT
- BLOCKED_BETTING
- BLOCKED_CLIENT
- DUPLICATE_UNIQUE_REQUEST_ID
- INCOMPLETE_CUSTOMER_BETTING_PROFILE
- INSUFFICIENT_FUNDS
- INVALID_COUNTRY
- INVALID_CUSTOMER_PROFILE
- INVALID_EVENT
- INVALID_ODDS_FORMAT
- INVALID_PARTNER
- INVALID_SOURCEID
- LICENCE_RESTRICTION_LIVE_BETTING_BLOCKED
- LIMITS_CONFIGURATION_ISSUE
- LIMIT_PRICE_IS_WORST_THAN_CURRENT
- LINE_CHANGED
- OFFLINE_EVENT
- PARTNER_PROFILE_IS_NOT_FOUND
- PARTNER_SOURCE_IP_IS_INVALID
- PAST_CUTOFFTIME
- RED_CARDS_CHANGED
- RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
- RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
- RESUBMIT_REQUEST
- SCORE_CHANGED
- SOURCEID_TOO_LONG
- TIME_RESTRICTION
- BETTING_SUSPENDED
betId:
type: integer
format: int64
description: Id of a newly created bet.
straightBet:
$ref: "#/components/schemas/StraightBet"
StraightBet:
type: object
required:
- betId
- betStatus
- betStatus2
- betType
- oddsFormat
- placedAt
- risk
- updateSequence
- wagerNumber
- win
properties:
betId:
type: integer
format: int64
example: 759629245
description: Bet identification
wagerNumber:
type: integer
format: int32
example: 1
description: 'Wager identification. All bets placed thru the API will have value 1. Website Classic view supports multiple contest(special) bets placement in the same bet slip in that case the bet would have appropriate wager number, as well as all round robin parlay bets.'
placedAt:
type: string
format: date-time
example: '2017-09-05T01:32:59Z'
description: Date time when the bet was placed.
betStatus:
type: string
example: ACCEPTED
description: |
Bet Status.
ACCEPTED = Bet was accepted,
CANCELLED = Bet is cancelled as per Pinnacle betting rules,
LOSE = The bet is settled as lose,
PENDING_ACCEPTANCE = This status is reserved only for live bets. If a live bet is placed during danger zone or live delay is applied, it will be in PENDING_ACCEPTANCE , otherwise in ACCEPTED status. From this status bet can go to ACCEPTED or NOT_ACCEPTED status,
REFUNDED = When an event is cancelled or when the bet is settled as push, the bet will have REFUNDED status,
NOT_ACCEPTED = Bet was not accepted. Bet can be in this status only if it was previously in PENDING_ACCEPTANCE status,
WON = The bet is settled as won
enum:
- ACCEPTED
- CANCELLED
- LOSE
- PENDING_ACCEPTANCE
- REFUNDED
- NOT_ACCEPTED
- WON
betStatus2:
type: string
example: ACCEPTED
description: |
Bet Status.
ACCEPTED = Bet was accepted.
CANCELLED = Bet is cancelled as per Pinnacle betting rules.
LOST = The bet is settled as lose.
PENDING_ACCEPTANCE = This status is reserved only for live bets. If a live bet is placed during danger zone or live delay is applied, it will be in PENDING_ACCEPTANCE , otherwise in ACCEPTED status. From this status bet can go to ACCEPTED or NOT_ACCEPTED status.
REFUNDED = When an event is cancelled or when the bet is settled as push, the bet will have REFUNDED status.
NOT_ACCEPTED = Bet was not accepted. Bet can be in this status only if it was previously in PENDING_ACCEPTANCE status.
WON = The bet is settled as won.
HALF_WON_HALF_PUSHED = The bet is settled as half won half pushed. Only for asian handicap bets.
HALF_LOST_HALF_PUSHED = The bet is settled as half lost half pushed. Only for asian handicap bets.
enum:
- ACCEPTED
- CANCELLED
- LOST
- PENDING_ACCEPTANCE
- REFUNDED
- NOT_ACCEPTED
- WON
- HALF_WON_HALF_PUSHED
- HALF_LOST_HALF_PUSHED
betType:
type: string
example: MONEYLINE
description: 'Bet type.'
enum:
- MONEYLINE
- TEAM_TOTAL_POINTS
- SPREAD
- TOTAL_POINTS
win:
type: number
format: double
example: 1
description: Win amount.
risk:
type: number
format: double
example: 1.5
description: Risk amount.
winLoss:
type: number
format: double
example: null
nullable: true
description: Win-Loss for settled bets.
oddsFormat:
$ref: '#/components/schemas/OddsFormat'
customerCommission:
type: number
format: double
example: null
nullable: true
description: Client’s commission on the bet.
cancellationReason:
$ref: '#/components/schemas/CancellationReason'
updateSequence:
type: integer
format: int64
example: 111548915
description: Update Sequence
sportId:
type: integer
format: int32
example: 29
description: ''
leagueId:
type: integer
format: int32
example: 2462
description: ''
eventId:
type: integer
format: int64
example: 757064557
description: ''
handicap:
type: number
format: double
example: null
nullable: true
description: ''
price:
type: number
format: double
example: -155
description: ''
teamName:
type: string
example: Crvena Zvezda
description: ''
side:
type: string
example: null
nullable: true
description: 'Side type.'
enum:
- OVER
- UNDER
team1:
type: string
example: Crvena Zvezda
description: ''
team2:
type: string
example: Partizan
description: ''
periodNumber:
type: integer
format: int32
example: 0
description: ''
team1Score:
type: number
format: double
example: null
nullable: true
description: 'Team 1 score that the bet was placed on, only for live bets.'
team2Score:
type: number
format: double
example: null
nullable: true
description: 'Team 2 score that the bet was placed, only for live bets.'
ftTeam1Score:
type: number
format: double
example: null
nullable: true
description: 'Full time team 1 score, only for settled bets.'
ftTeam2Score:
type: number
format: double
example: null
nullable: true
description: 'Full time team 2 score, only for settled bets.'
pTeam1Score:
type: number
format: double
example: null
nullable: true
description: '.End of period team 1 score, only for settled bets. If the bet was placed on Game period (periodNumber =0) , this will be null . '
pTeam2Score:
type: number
format: double
example: null
nullable: true
description: 'End of period team 2 score, only for settled bets. If the bet was placed on Game period (periodNumber =0) , this will be null'
isLive:
type: boolean
example: false
description: Whether the bet is on live event
eventStartTime:
type: string
format: date-time
example: '2017-10-05T01:32:59Z'
description: Date time when the event starts.
description: ''
# Special Bet
MultiBetSpecialBetRequest:
type: object
properties:
bets:
type: array
description: The individual bets.
items:
$ref: '#/components/schemas/SpecialBetRequest'
description: ''
SpecialBetRequest:
type: object
properties:
uniqueRequestId:
type: string
format: uuid
example: 10924E23-A2FE-4317-BFFD-80504675F554
description: This unique id of the place bet requests. This is to support idempotent requests.
acceptBetterLine:
type: boolean
example: true
description: Whether or not to accept a bet when there is a line change in favor of the client.
oddsFormat:
$ref: '#/components/schemas/OddsFormat'
stake:
type: number
format: double
example: 10.5
description: amount in client’s currency.
winRiskStake:
type: string
example: RISK
description: Whether the stake amount is risk or win amount.
enum:
- WIN
- RISK
lineId:
type: integer
format: int64
example: 51024304
description: Line identification.
specialId:
type: integer
format: int64
example: 726394409
description: Special identification.
contestantId:
type: integer
format: int64
example: 726394411
description: Contestant identification.
externalRef:
description: Bet reference identifier in the partner's system.
example: 12345
type: string
sourceId:
description: Bettor identifier in the partner's system.
example: ABC1234
type: string
ext:
$ref: '#/components/schemas/PlaceBetExtension'
description: ''
MultiBetSpecialBetResponse:
type: object
properties:
bets:
type: array
description: The individual bets.
items:
$ref: '#/components/schemas/SpecialBetResponse'
description: ''
SpecialBetResponse:
type: object
properties:
status:
type: string
example: ACCEPTED
description: Status of the request.
enum:
- ACCEPTED
- PROCESSED_WITH_ERROR
errorCode:
type: string
example: null
nullable: true
enum:
- ABOVE_MAX_BET_AMOUNT
- ALL_BETTING_CLOSED
- BELOW_MIN_BET_AMOUNT
- BLOCKED_BETTING
- BLOCKED_CLIENT
- CONTEST_FUNCTIONALITY_IS_DISABLED
- CONTEST_NOT_FOUND
- CUSTOMER_TYPE_DOES_NOT_MATCH_PARTNER
- DUPLICATE_UNIQUE_REQUEST_ID
- INCOMPLETE_CUSTOMER_BETTING_PROFILE
- INSUFFICIENT_FUNDS
- INVALID_COUNTRY
- INVALID_CUSTOMER_PROFILE
- INVALID_PARTNER
- INVALID_REQUEST
- INVALID_SOURCEID
- INVALID_WAGER
- INVALID_WAGER_TYPE
- LINE_CHANGED
- PARTNER_PROFILE_IS_NOT_FOUND
- PAST_CUTOFFTIME
- RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
- RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
- RESUBMIT_REQUEST
- SOURCEID_TOO_LONG
- SYSTEM_ERROR_1
- SYSTEM_ERROR_2
- UNIQUE_REQUEST_ID_REQUIRED
- BETTING_SUSPENDED
betId:
type: integer
format: int64
example: 760745142
description: Id of a newly created bet.
uniqueRequestId:
type: string
format: uuid
example: 10924E23-A2FE-4317-BFFD-80504675F554
description: Unique identifier provided in the request.
betterLineWasAccepted:
type: boolean
example: false
description: Whether or not the bet was accepted on the line that changed in favour of client. This can be true only if acceptBetterLine in the Place Bet request is set to TRUE.
specialBet:
$ref: '#/components/schemas/SpecialBet'
description: 'Present if bet was accepted'
description: ''
SpecialBet:
type: object
required:
- betId
- betStatus
- betType
- contestantId
- contestantName
- leagueId
- oddsFormat
- placedAt
- price
- risk
- specialId
- specialName
- sportId
- updateSequence
- wagerNumber
- win
properties:
betId:
type: integer
format: int64
example: 760748770
description: Bet identification
uniqueRequestId:
type: string
format: uuid
example: 10924E23-A2FE-4317-BFFD-80504675F554
description: Unique Request Id
wagerNumber:
type: integer
format: int32
example: 1
description: 'Wager identification. All bets placed thru the API will have value 1. Website Classic view supports multiple contest(special) bets placement in the same bet slip in that case the bet would have appropriate wager number, as well as all round robin parlay bets.'
placedAt:
type: string
format: date-time
example: '2017-09-09T01:49:43Z'
description: Date time when the bet was placed.
betStatus:
type: string
example: ACCEPTED
description: |
Bet Status.
ACCEPTED = Bet was accepted,
CANCELLED = Bet is cancelled as per Pinnacle betting rules,
LOSE = The bet is settled as lose,
REFUNDED = When an event is cancelled or when the bet is settled as push, the bet will have REFUNDED status,
WON = The bet is settled as won
enum:
- ACCEPTED
- CANCELLED
- LOSE
- REFUNDED
- WON
betType:
type: string
default: SPECIAL
example: SPECIAL
win:
type: number
format: double
example: 1
description: Win amount.
risk:
type: number
format: double
example: 1.51
description: Risk amount.
winLoss:
type: number
format: double
example: null
nullable: true
description: Win-Loss for settled bets.
oddsFormat:
$ref: '#/components/schemas/OddsFormat'
customerCommission:
type: number
format: double
example: null
nullable: true
description: Client’s commission on the bet.
cancellationReason:
$ref: '#/components/schemas/CancellationReason'
updateSequence:
type: integer
format: int64
example: 113214135
description: Update Sequence. It gets updated when the bet status change.
specialId:
type: integer
format: int64
example: 726397620
description: ''
specialName:
type: string
example: Denver Broncos Regular Season Wins?
description: ''
contestantId:
type: integer
format: int64
example: 726397622
description: ''
contestantName:
type: string
example: Under
description: ''
price:
type: number
format: double
example: -151
description: ''
handicap:
type: number
format: double
example: 8.5
description: ''
units:
type: string
example: Regular Season Wins
description: ''
sportId:
type: integer
format: int32
example: 15
description: ''
leagueId:
type: integer
format: int32
example: 889
description: ''
eventId:
type: integer
format: int64
example: null
nullable: true
description: Populated if bet was placed on a special linked to the event.
periodNumber:
type: integer
format: int32
example: null
nullable: true
description: Populated if bet was placed on a special linked to the event.
team1:
type: string
example: null
nullable: true
description: Populated if bet was placed on a special linked to the event.
team2:
type: string
example: null
nullable: true
description: Populated if bet was placed on a special linked to the event.
eventStartTime:
type: string
format: date-time
example: '2017-10-07T21:00:00Z'
description: ''
description: ''
# Parlay
PlaceParlayBetRequest:
type: object
properties:
uniqueRequestId:
type: string
format: uuid
example: A9EB2EB1-13A5-4600-9F1B-4859379CDEC4
description: This unique id of the place bet requests. This is to support idempotent requests.
acceptBetterLine:
type: boolean
example: true
description: Whether or not to accept a bet when there is a line change in favor of the client.
riskAmount:
type: number
format: double
example: 10.5
description: 'Amount in client’s currency. It is always risk amount when placing Parlay bets NOTE: If round robin options is used this amount will apply for all parlays so actual amount wagered will be riskAmount X number of Parlays.'
oddsFormat:
$ref: '#/components/schemas/OddsFormat'
legs:
type: array
description: Collection of parlay legs.
items:
$ref: '#/components/schemas/ParlayLegRequest'
roundRobinOptions:
type: array
description: ''
items:
type: string
enum:
- Parlay
- TwoLegRoundRobin
- ThreeLegRoundRobin
- FourLegRoundRobin
- FiveLegRoundRobin
- SixLegRoundRobin
- SevenLegRoundRobin
- EightLegRoundRobin
description: Request to place a bet
ParlayLegRequest:
type: object
properties:
uniqueLegId:
type: string
example: CFAD8ACF-E410-437C-8F0F-33611F565981
description: Unique id of the leg. It's used to identify and match legs in the response.
lineId:
type: integer
format: int64
example: 419715968
description: Line identification.
altLineId:
type: integer
format: int64
example: null
nullable: true
description: Alternate line identification.
sportId:
type: integer
format: int32
example: 29
description: Sport identification.
eventId:
type: integer
format: int64
example: 758023991
description: Event identification.
periodNumber:
type: integer
format: int32
example: 0
description: 'This represents the period of the match. For example, for soccer we have: 0 - Game, 1 - 1st Half and 2 - 2nd Half'
legBetType:
type: string
example: MONELYLINE
description: 'Only SPREAD, MONEYLINE and TOTAL_POINTS are supported.'
enum:
- MONEYLINE
- SPREAD
- TOTAL_POINTS
team:
type: string
example: TEAM1
description: Chosen team type. This is needed only for SPREAD and MONEYLINE bet types.