betsapi_zh.yaml 152 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706
  1. swagger: '2.0'
  2. info:
  3. version: 1.0.0
  4. title: Pinnacle888 API - 投注 API 参考(Bets API)
  5. description: |
  6. 关于投注的一切:下单、查询投注历史或当前投注状态。
  7. # 认证
  8. API 使用 HTTP Basic 访问认证。需在请求头中发送 Authorization:
  9. `Authorization: Basic <UTF-8 编码的 "用户名:密码" 的 Base64 值>`
  10. 示例:
  11. `Authorization: Basic U03MyOT23YbzMDc6d3c3O1DQ1`
  12. x-logo:
  13. url: ''
  14. host: api.pinnacle888.com
  15. schemes:
  16. - https
  17. security:
  18. - basicAuth: []
  19. paths:
  20. /v2/bets/place:
  21. post:
  22. tags:
  23. - 下单投注
  24. summary: 下单选式投注 - v2
  25. description: |
  26. 下单选式投注(让分 SPREAD、独赢 MONEYLINE、总分 TOTAL_POINTS、队伍总分 TEAM_TOTAL_POINTS)。
  27. 请注意:当状态为 PENDING_ACCEPTANCE 且应用了滚球延迟时,响应中不会包含 betId。客户端需通过 uniqueRequestId 调用 /bets 来查询投注是否已被 ACCEPTED。
  28. 详见 [如何在滚球赛事上下注?](https://github.com/pinny888/pinny888.github.io/blob/main/FAQs.md#how-to-place-a-bet-on-live-events)
  29. operationId: Bets_StraightV2
  30. consumes:
  31. - application/json
  32. produces:
  33. - application/json
  34. parameters:
  35. - in: body
  36. name: request
  37. description: ''
  38. required: true
  39. schema:
  40. $ref: '#/definitions/PlaceBetRequestV2'
  41. responses:
  42. '200':
  43. description: 成功
  44. schema:
  45. $ref: '#/definitions/PlaceBetResponseV2'
  46. '400':
  47. description: 请求错误
  48. schema:
  49. $ref: '#/definitions/ErrorResponse'
  50. '401':
  51. description: 未授权
  52. schema:
  53. $ref: '#/definitions/ErrorResponse'
  54. '403':
  55. description: 禁止访问
  56. schema:
  57. $ref: '#/definitions/ErrorResponse'
  58. '500':
  59. description: 服务器内部错误
  60. schema:
  61. $ref: '#/definitions/ErrorResponseWithErrorRef'
  62. /v2/bets/parlay:
  63. post:
  64. tags:
  65. - 下单投注
  66. summary: 下串关投注 - v2
  67. operationId: Bets_ParlayV2
  68. consumes:
  69. - application/json
  70. produces:
  71. - application/json
  72. parameters:
  73. - in: body
  74. name: request
  75. description: 串关投注请求体。
  76. required: true
  77. schema:
  78. $ref: '#/definitions/PlaceParlayBetRequest'
  79. responses:
  80. '200':
  81. description: 成功
  82. schema:
  83. $ref: '#/definitions/PlaceParlayBetResponseV2'
  84. '400':
  85. description: 请求错误
  86. schema:
  87. $ref: '#/definitions/ErrorResponse'
  88. '401':
  89. description: 未授权
  90. schema:
  91. $ref: '#/definitions/ErrorResponse'
  92. '403':
  93. description: 禁止访问
  94. schema:
  95. $ref: '#/definitions/ErrorResponse'
  96. '500':
  97. description: 服务器内部错误
  98. schema:
  99. $ref: '#/definitions/ErrorResponseWithErrorRef'
  100. /v1/bets/teaser:
  101. post:
  102. tags:
  103. - 下单投注
  104. summary: 下过关投注(Teaser)- v1
  105. operationId: Bets_Teaser
  106. consumes:
  107. - application/json
  108. produces:
  109. - application/json
  110. parameters:
  111. - in: body
  112. name: request
  113. description: 过关投注(PlaceTeaser)请求体。
  114. required: true
  115. schema:
  116. $ref: '#/definitions/PlaceTeaserBetRequest'
  117. responses:
  118. '200':
  119. description: 成功
  120. schema:
  121. $ref: '#/definitions/PlaceTeaserBetResponse'
  122. '400':
  123. description: 请求错误
  124. schema:
  125. $ref: '#/definitions/ErrorResponse'
  126. '401':
  127. description: 未授权
  128. schema:
  129. $ref: '#/definitions/ErrorResponse'
  130. '403':
  131. description: 禁止访问
  132. schema:
  133. $ref: '#/definitions/ErrorResponse'
  134. '500':
  135. description: 服务器内部错误
  136. schema:
  137. $ref: '#/definitions/ErrorResponseWithErrorRef'
  138. /v2/bets/special:
  139. post:
  140. tags:
  141. - 下单投注
  142. summary: 下特殊投注 - v2
  143. operationId: Bets_SpecialV2
  144. consumes:
  145. - application/json
  146. produces:
  147. - application/json
  148. parameters:
  149. - in: body
  150. name: request
  151. description: 特殊投注请求体。
  152. required: true
  153. schema:
  154. $ref: '#/definitions/MultiBetRequest[SpecialBetRequest]'
  155. responses:
  156. '200':
  157. description: 成功
  158. schema:
  159. $ref: '#/definitions/MultiBetResponse[SpecialBetResponse]'
  160. '400':
  161. description: 请求错误
  162. schema:
  163. $ref: '#/definitions/ErrorResponse'
  164. '401':
  165. description: 未授权
  166. schema:
  167. $ref: '#/definitions/ErrorResponse'
  168. '403':
  169. description: 禁止访问
  170. schema:
  171. $ref: '#/definitions/ErrorResponse'
  172. '500':
  173. description: 服务器内部错误
  174. schema:
  175. $ref: '#/definitions/ErrorResponseWithErrorRef'
  176. /v4/bets/place:
  177. post:
  178. tags:
  179. - 下单投注
  180. summary: 下单选式投注 - v4
  181. description: |
  182. Place straight bet (SPREAD, MONEYLINE, TOTAL_POINTS, TEAM_TOTAL_POINTS).
  183. Please note when the status is PENDING_ACCEPTANCE and if the live delay was applied, the response will not have betId. Client would have to call /bets by uniqueRequestId to check the status if the bet was ACCEPTED.
  184. For more details please see [How to place a bet on live events?](https://github.com/pinny888/pinny888.github.io/blob/main/FAQs.md#how-to-place-a-bet-on-live-events)
  185. operationId: Bets_StraightV4
  186. consumes:
  187. - application/json
  188. produces:
  189. - application/json
  190. parameters:
  191. - in: body
  192. name: request
  193. description: ''
  194. required: true
  195. schema:
  196. $ref: '#/definitions/PlaceBetRequestV2'
  197. responses:
  198. '200':
  199. description: 成功
  200. schema:
  201. $ref: '#/definitions/PlaceBetResponseV4'
  202. '400':
  203. description: 请求错误
  204. schema:
  205. $ref: '#/definitions/ErrorResponse'
  206. '401':
  207. description: 未授权
  208. schema:
  209. $ref: '#/definitions/ErrorResponse'
  210. '403':
  211. description: 禁止访问
  212. schema:
  213. $ref: '#/definitions/ErrorResponse'
  214. '500':
  215. description: 服务器内部错误
  216. schema:
  217. $ref: '#/definitions/ErrorResponseWithErrorRef'
  218. /v4/bets/parlay:
  219. post:
  220. tags:
  221. - 下单投注
  222. summary: 下串关投注 - v4
  223. operationId: Bets_ParlayV4
  224. consumes:
  225. - application/json
  226. produces:
  227. - application/json
  228. parameters:
  229. - in: body
  230. name: request
  231. description: 串关投注请求体。
  232. required: true
  233. schema:
  234. $ref: '#/definitions/PlaceParlayBetRequest'
  235. responses:
  236. '200':
  237. description: 成功
  238. schema:
  239. $ref: '#/definitions/PlaceParlayBetResponseV4'
  240. '400':
  241. description: 请求错误
  242. schema:
  243. $ref: '#/definitions/ErrorResponse'
  244. '401':
  245. description: 未授权
  246. schema:
  247. $ref: '#/definitions/ErrorResponse'
  248. '403':
  249. description: 禁止访问
  250. schema:
  251. $ref: '#/definitions/ErrorResponse'
  252. '500':
  253. description: 服务器内部错误
  254. schema:
  255. $ref: '#/definitions/ErrorResponseWithErrorRef'
  256. /v4/bets/teaser:
  257. post:
  258. tags:
  259. - 下单投注
  260. summary: 下过关投注(Teaser)- v4
  261. operationId: Bets_TeaserV4
  262. consumes:
  263. - application/json
  264. produces:
  265. - application/json
  266. parameters:
  267. - in: body
  268. name: request
  269. description: 过关投注(PlaceTeaser)请求体。
  270. required: true
  271. schema:
  272. $ref: '#/definitions/PlaceTeaserBetRequest'
  273. responses:
  274. '200':
  275. description: 成功
  276. schema:
  277. $ref: '#/definitions/PlaceTeaserBetResponseV4'
  278. '400':
  279. description: 请求错误
  280. schema:
  281. $ref: '#/definitions/ErrorResponse'
  282. '401':
  283. description: 未授权
  284. schema:
  285. $ref: '#/definitions/ErrorResponse'
  286. '403':
  287. description: 禁止访问
  288. schema:
  289. $ref: '#/definitions/ErrorResponse'
  290. '500':
  291. description: 服务器内部错误
  292. schema:
  293. $ref: '#/definitions/ErrorResponseWithErrorRef'
  294. /v4/bets/special:
  295. post:
  296. tags:
  297. - 下单投注
  298. summary: 下特殊投注 - v4
  299. operationId: Bets_SpecialV4
  300. consumes:
  301. - application/json
  302. produces:
  303. - application/json
  304. parameters:
  305. - in: body
  306. name: request
  307. description: 特殊投注请求体。
  308. required: true
  309. schema:
  310. $ref: '#/definitions/MultiBetRequest[SpecialBetRequest]'
  311. responses:
  312. '200':
  313. description: 成功
  314. schema:
  315. $ref: '#/definitions/MultiBetResponse[SpecialBetResponseV4]'
  316. '400':
  317. description: 请求错误
  318. schema:
  319. $ref: '#/definitions/ErrorResponse'
  320. '401':
  321. description: 未授权
  322. schema:
  323. $ref: '#/definitions/ErrorResponse'
  324. '403':
  325. description: 禁止访问
  326. schema:
  327. $ref: '#/definitions/ErrorResponse'
  328. '500':
  329. description: 服务器内部错误
  330. schema:
  331. $ref: '#/definitions/ErrorResponseWithErrorRef'
  332. /v3/bets:
  333. get:
  334. tags:
  335. - 查询投注
  336. summary: 查询投注 - v3
  337. description: |
  338. 返回投注列表。
  339. ### 按时间范围查询进行中投注:
  340. ```
  341. https://api.pinnacle888.com/v3/bets?betlist=RUNNING&fromDate=2017-11-21T00:00:00Z&toDate=2017-11-29T00:00:00Z
  342. ```
  343. 进行中投注按 *placedAt* 时间查询。
  344. ### 按时间范围查询已结算投注:
  345. ```
  346. https://api.pinnacle888.com/v3/bets?betlist=SETTLED&fromDate=2015-12-28T00:00:00Z&toDate=2015-12-29T00:00:00Z
  347. ```
  348. 已结算投注按 *settledAt* 时间查询。
  349. https://api.pinnacle888.com/v3/bets?betlist=SETTLED&fromDate=2017-11-20T00:00:00Z&toDate=2017-11-23T00:00:00Z
  350. ### 按时间范围查询已结算的已取消投注:
  351. ```
  352. https://api.pinnacle888.com/v3/bets?betList=SETTLED&fromDate=2018-03-01&toDate=2018-03-28&betStatuses=CANCELLED
  353. ```
  354. ### 按投注 ID 查询:
  355. ```
  356. https://api.pinnacle888.com/v3/bets?betIds=775856112,775856113,775856114
  357. ```
  358. ### 按 uniqueRequestIds 查询:
  359. ```
  360. https://api.pinnacle888.com/v3/bets?uniqueRequestIds=62335222-dae4-479a-8c05-46440ccdd3bb,42335222-dae4-479a-8c05-46440ccdd3bb
  361. ```
  362. operationId: Bets_GetBetsByTypeV3
  363. consumes: []
  364. produces:
  365. - application/json
  366. parameters:
  367. - name: betlist
  368. in: query
  369. description: '返回的投注列表类型。当提交 betIds 时不需要此参数。'
  370. required: false
  371. type: string
  372. enum:
  373. - SETTLED
  374. - RUNNING
  375. - ALL
  376. - name: betStatuses
  377. in: query
  378. description: '返回的投注状态类型。仅在与 betlist 一起使用时生效,作为附加筛选条件。'
  379. required: false
  380. type: array
  381. items:
  382. type: string
  383. enum:
  384. - WON
  385. - LOSE
  386. - CANCELLED
  387. - REFUNDED
  388. - NOT_ACCEPTED
  389. - ACCEPTED
  390. - PENDING_ACCEPTANCE
  391. collectionFormat: csv
  392. - name: fromDate
  393. in: query
  394. description: |
  395. 查询时间段的开始日期。当提交 betlist 参数时必填。开始日期最多可追溯 30 天。格式为 ISO8601,可仅填日期或日期时间。
  396. required: false
  397. type: string
  398. - name: toDate
  399. in: query
  400. description: |
  401. 查询时间段的结束日期。当提交 betlist 参数时必填。格式为 ISO8601,可仅填日期或日期时间。toDate 为不包含边界,即不能等于 fromDate。
  402. required: false
  403. type: string
  404. - name: sortDir
  405. in: query
  406. description: '按 postedAt/settledAt 的排序方向。仅在使用日期范围查询时生效。'
  407. required: false
  408. type: string
  409. enum:
  410. - ASC
  411. - DESC
  412. default: ASC
  413. - name: pageSize
  414. in: query
  415. description: '每页条数,最大 1000。仅在使用日期范围查询时生效。'
  416. required: false
  417. type: integer
  418. default: 1000
  419. - name: fromRecord
  420. in: query
  421. description: '结果起始记录(含)。仅在使用日期范围查询时生效。获取下一页时设为 toRecord+1。'
  422. required: false
  423. type: integer
  424. default: 0
  425. - name: betIds
  426. in: query
  427. description: '逗号分隔的投注 ID 列表。提交 betIds 时无需其他参数。最多 100 个 ID。适用于所有未结算投注及最近 30 天内结算的投注。'
  428. required: false
  429. type: array
  430. items:
  431. type: integer
  432. format: int64
  433. collectionFormat: csv
  434. - name: uniqueRequestIds
  435. in: query
  436. description: |
  437. 逗号分隔的 uniqueRequestIds 列表,用于查询之前下的选式投注。若指定则优先级最高,其他参数均被忽略。最多 10 个 ID。若有 betId 建议用 betIds 查询;无 betId 时使用 uniqueRequestIds。主要有两种情况:
  438. 1. 在带滚球延迟的滚球赛事上下注时,下单响应不返回 betId,客户端可用 uniqueRequestIds 查询投注状态。
  439. 2. 网络异常导致客户端不确定下单请求结果时。空响应表示投注未成功。详见 [去重说明](https://www.pinnacle.com/de/api/manual#overview)
  440. 注意:按 uniqueRequestIds 查询仅支持选式投注和特殊投注,且仅限投注下单后 30 分钟内。
  441. required: false
  442. type: array
  443. items:
  444. type: string
  445. collectionFormat: csv
  446. - name: betType
  447. in: query
  448. description: '逗号分隔的投注类型列表。'
  449. required: false
  450. type: array
  451. items:
  452. type: string
  453. enum:
  454. - SPREAD
  455. - MONEYLINE
  456. - TOTAL_POINTS
  457. - TEAM_TOTAL_POINTS
  458. - SPECIAL
  459. - PARLAY
  460. - TEASER
  461. - MANUAL
  462. collectionFormat: csv
  463. responses:
  464. '200':
  465. description: 成功
  466. schema:
  467. $ref: '#/definitions/GetBetsByTypeResponseV3'
  468. '400':
  469. description: 请求错误
  470. schema:
  471. $ref: '#/definitions/ErrorResponse'
  472. '401':
  473. description: 未授权
  474. schema:
  475. $ref: '#/definitions/ErrorResponse'
  476. '403':
  477. description: 禁止访问
  478. schema:
  479. $ref: '#/definitions/ErrorResponse'
  480. '500':
  481. description: 服务器内部错误
  482. schema:
  483. $ref: '#/definitions/ErrorResponseWithErrorRef'
  484. /v3/bets/settled:
  485. get:
  486. tags:
  487. - 查询投注
  488. summary: 查询已结算投注 - v3
  489. description: |
  490. 返回已结算的投注列表。
  491. ### 按时间范围查询已结算投注:
  492. ```
  493. https://api.pinnacle888.com/v3/bets/settled?fromDate=2015-12-28T00:00:00Z&toDate=2015-12-29T00:00:00Z
  494. ```
  495. ### 按 uniqueRequestIds 查询已结算投注:
  496. ```
  497. https://api.pinnacle888.com/v3/bets/settled?uniqueRequestIds=62335222-dae4-479a-8c05-46440ccdd3bb,42335222-dae4-479a-8c05-46440ccdd3bb
  498. ```
  499. operationId: Bets_GetBetsSettledV3
  500. consumes: []
  501. produces:
  502. - application/json
  503. parameters:
  504. - name: eventId
  505. in: query
  506. description: 赛事标识。注意:按 eventId 查询仅支持投注结算后 90 天内。
  507. required: false
  508. type: integer
  509. format: int64
  510. - name: specialId
  511. in: query
  512. description: 特殊盘口 ID。
  513. required: false
  514. type: integer
  515. format: int64
  516. - name: fromDate
  517. in: query
  518. description: |
  519. 查询时间段的开始日期。当提交 betlist 参数时必填。开始日期最多可追溯 30 天。格式为 ISO8601,可仅填日期或日期时间。
  520. required: false
  521. type: string
  522. - name: toDate
  523. in: query
  524. description: |
  525. 查询时间段的结束日期。当提交 betlist 参数时必填。格式为 ISO8601,可仅填日期或日期时间。toDate 为不包含边界,即不能等于 fromDate。
  526. required: false
  527. type: string
  528. - name: sortDir
  529. in: query
  530. description: '按 postedAt/settledAt 的排序方向。仅在使用日期范围查询时生效。'
  531. required: false
  532. type: string
  533. enum:
  534. - ASC
  535. - DESC
  536. default: ASC
  537. - name: pageSize
  538. in: query
  539. description: '每页条数,最大 1000。仅在使用日期范围查询时生效。'
  540. required: false
  541. type: integer
  542. default: 1000
  543. - name: fromRecord
  544. in: query
  545. description: '结果起始记录(含)。仅在使用日期范围查询时生效。获取下一页时设为 toRecord+1。'
  546. required: false
  547. type: integer
  548. default: 0
  549. - name: uniqueRequestIds
  550. in: query
  551. description: |
  552. 逗号分隔的 uniqueRequestIds 列表,用于查询之前下的选式投注。若指定则优先级最高,其他参数均被忽略。最多 10 个 ID。若有 betId 建议用 betIds 查询;无 betId 时使用 uniqueRequestIds。主要有两种情况:
  553. 1. 在带滚球延迟的滚球赛事上下注时,下单响应不返回 betId,客户端可用 uniqueRequestIds 查询投注状态。
  554. 2. 网络异常导致客户端不确定下单请求结果时。空响应表示投注未成功。详见 [去重说明](https://www.pinnacle.com/de/api/manual#overview)
  555. 注意:按 uniqueRequestIds 查询仅支持选式投注,且仅限投注下单后 30 分钟内。
  556. required: false
  557. type: array
  558. items:
  559. type: string
  560. collectionFormat: csv
  561. responses:
  562. '200':
  563. description: 成功
  564. schema:
  565. $ref: '#/definitions/GetBetsByTypeResponseV3'
  566. '400':
  567. description: 请求错误
  568. schema:
  569. $ref: '#/definitions/ErrorResponse'
  570. '401':
  571. description: 未授权
  572. schema:
  573. $ref: '#/definitions/ErrorResponse'
  574. '403':
  575. description: 禁止访问
  576. schema:
  577. $ref: '#/definitions/ErrorResponse'
  578. '500':
  579. description: 服务器内部错误
  580. schema:
  581. $ref: '#/definitions/ErrorResponseWithErrorRef'
  582. /v1/regrades/wager-history:
  583. get:
  584. tags:
  585. - 查询投注
  586. summary: 查询改分投注历史 - v1
  587. description: |
  588. 返回与改分投注相关的历史数据。
  589. ### 按时间范围查询改分投注历史:
  590. ```
  591. https://api.pinnacle888.com/v1/regrades/wager-history?fromDate=2024-04-01T00:00:00Z&toDate=2024-04-27T00:00:00Z
  592. ```
  593. ### 按投注 ID 查询改分投注历史:
  594. ```
  595. https://api.pinnacle888.com/v1/regrades/wager-history?betIds=52454247
  596. ```
  597. operationId: Bets_GetRegradedWagerHistoryV1
  598. consumes: []
  599. produces:
  600. - application/json
  601. parameters:
  602. - name: betIds
  603. in: query
  604. description: '逗号分隔的投注 ID 列表。提交 betIds 时无需其他参数。最多 100 个 ID。适用于最近 30 天内结算的所有投注。'
  605. required: false
  606. type: array
  607. items:
  608. type: integer
  609. format: int64
  610. collectionFormat: csv
  611. - name: fromDate
  612. in: query
  613. description: |
  614. 查询时间段的开始日期。未提交 betIds 时必填。开始日期最多可追溯 30 天。格式为 ISO8601,可仅填日期或日期时间。
  615. required: false
  616. type: string
  617. - name: toDate
  618. in: query
  619. description: |
  620. 查询时间段的结束日期。未提交 betIds 时必填。格式为 ISO8601,可仅填日期或日期时间。toDate 为不包含边界,即不能等于 fromDate。
  621. required: false
  622. type: string
  623. - name: sortDir
  624. in: query
  625. description: '按 postedAt/settledAt 的排序方向。仅在使用日期范围查询时生效。'
  626. required: false
  627. type: string
  628. enum:
  629. - ASC
  630. - DESC
  631. default: ASC
  632. - name: pageSize
  633. in: query
  634. description: '每页条数,最大 1000。仅在使用日期范围查询时生效。'
  635. required: false
  636. type: integer
  637. default: 1000
  638. - name: fromRecord
  639. in: query
  640. description: '结果起始记录(含)。仅在使用日期范围查询时生效。获取下一页时设为 toRecord+1。'
  641. required: false
  642. type: integer
  643. default: 0
  644. responses:
  645. '200':
  646. description: 成功
  647. schema:
  648. $ref: '#/definitions/GetRegradedWagerHistoryResponseV1'
  649. '400':
  650. description: 请求错误
  651. schema:
  652. $ref: '#/definitions/ErrorResponse'
  653. '401':
  654. description: 未授权
  655. schema:
  656. $ref: '#/definitions/ErrorResponse'
  657. '403':
  658. description: 禁止访问
  659. schema:
  660. $ref: '#/definitions/ErrorResponse'
  661. '500':
  662. description: 服务器内部错误
  663. schema:
  664. $ref: '#/definitions/ErrorResponseWithErrorRef'
  665. /v1/bets/betting-status:
  666. get:
  667. tags:
  668. - 投注状态
  669. summary: 查询投注状态
  670. description: '返回当前投注状态。维护期间可能关闭投注,可调用此接口检查当前投注是否可用。'
  671. operationId: Bets_GetBettingStatus
  672. consumes: []
  673. produces:
  674. - application/json
  675. parameters: []
  676. responses:
  677. '200':
  678. description: 成功
  679. schema:
  680. $ref: '#/definitions/BettingStatusResponse'
  681. '401':
  682. description: 未授权
  683. schema:
  684. $ref: '#/definitions/ErrorResponse'
  685. '403':
  686. description: 禁止访问
  687. schema:
  688. $ref: '#/definitions/ErrorResponse'
  689. '500':
  690. description: 服务器内部错误
  691. schema:
  692. $ref: '#/definitions/ErrorResponseWithErrorRef'
  693. securityDefinitions:
  694. basicAuth:
  695. type: basic
  696. definitions:
  697. PlaceBetRequestV2:
  698. type: object
  699. properties:
  700. oddsFormat:
  701. $ref: '#/definitions/OddsFormat'
  702. uniqueRequestId:
  703. type: string
  704. format: uuid
  705. example: D5CC50E4-284D-4D50-8D49-429BDC4F2A48
  706. description: 下单请求的唯一 ID,用于支持幂等请求。
  707. acceptBetterLine:
  708. type: boolean
  709. example: true
  710. description: 当盘口变化对客户有利时是否接受该投注。
  711. stake:
  712. type: number
  713. format: double
  714. example: 10.5
  715. description: amount in client’s currency.
  716. winRiskStake:
  717. type: string
  718. example: RISK
  719. description: 投注金额是风险金额还是盈利金额。
  720. enum:
  721. - WIN
  722. - RISK
  723. lineId:
  724. type: integer
  725. format: int64
  726. example: 420921914
  727. description: 盘口标识。
  728. altLineId:
  729. type: integer
  730. format: int64
  731. example: null
  732. x-nullable: true
  733. description: 备用盘口标识。
  734. pitcher1MustStart:
  735. type: boolean
  736. description: '仅棒球。指主队(Team1)先发投手。仅 MONEYLINE 投注类型可设,其他类型须为 TRUE。'
  737. pitcher2MustStart:
  738. type: boolean
  739. description: '仅棒球。指客队(Team2)先发投手。仅 MONEYLINE 投注类型可设,其他类型须为 TRUE。'
  740. fillType:
  741. type: string
  742. description: |
  743. NORMAL - 按指定金额下注。
  744. FILLANDKILL - 若金额超过最大限额则按最大限额下注,否则按指定金额下注。
  745. FILLMAXLIMIT - 按最大限额下注,忽略指定金额。注意最大限额可能随时变动,可能导致风险高于预期。此选项替代 v1/bets/place 的 isMaxStakeBet。
  746. enum:
  747. - NORMAL
  748. - FILLANDKILL
  749. - FILLMAXLIMIT
  750. example: NORMAL
  751. default: NORMAL
  752. sportId:
  753. type: integer
  754. format: int32
  755. example: 29
  756. eventId:
  757. type: integer
  758. format: int64
  759. example: 757504261
  760. periodNumber:
  761. type: integer
  762. format: int32
  763. example: 0
  764. betType:
  765. type: string
  766. example: MONEYLINE
  767. description: '投注类型。'
  768. enum:
  769. - MONEYLINE
  770. - TEAM_TOTAL_POINTS
  771. - SPREAD
  772. - TOTAL_POINTS
  773. team:
  774. type: string
  775. example: TEAM1
  776. description: '队伍类型。'
  777. enum:
  778. - TEAM1
  779. - TEAM2
  780. - DRAW
  781. side:
  782. type: string
  783. example: null
  784. x-nullable: true
  785. description: '方向类型(大/小)。'
  786. enum:
  787. - OVER
  788. - UNDER
  789. handicap:
  790. type: number
  791. format: double
  792. example: 1.0
  793. description: SPREAD、TOTAL_POINTS、TEAM_TOTAL_POINTS 类型的可选参数。
  794. description: 下单请求体。
  795. ErrorResponse:
  796. type: object
  797. properties:
  798. code:
  799. type: string
  800. description: |
  801. INVALID_REQUEST_DATA = 请求参数无效 (HTTP 400)
  802. SELF_EXCLUSION = 客户账户已自我排除 (HTTP 400)
  803. TERMS_AND_CONDITIONS_NOT_ACCEPTED = 未接受条款与条件 (HTTP 400)
  804. INVALID_CREDENTIALS = 认证失败,凭据无效 (HTTP 401)
  805. INVALID_AUTHORIZATION_HEADER = 缺少 HTTP Authorization 头 (HTTP 401)
  806. ACCOUNT_INACTIVE = 客户账户未激活 (HTTP 403)
  807. NO_API_ACCESS = 账户无权访问 API (HTTP 403)
  808. enum:
  809. - INVALID_REQUEST_DATA
  810. - SELF_EXCLUSION
  811. - TERMS_AND_CONDITIONS_NOT_ACCEPTED
  812. - INVALID_CREDENTIALS
  813. - INVALID_AUTHORIZATION_HEADER
  814. - ACCOUNT_INACTIVE
  815. - NO_API_ACCESS
  816. message:
  817. type: string
  818. PlaceBetResponseV2:
  819. type: object
  820. properties:
  821. status:
  822. type: string
  823. example: ACCEPTED
  824. description: 响应状态。
  825. enum:
  826. - ACCEPTED
  827. - PENDING_ACCEPTANCE
  828. - PROCESSED_WITH_ERROR
  829. errorCode:
  830. type: string
  831. example: null
  832. x-nullable: true
  833. description: |
  834. 当 Status 为 PROCESSED_WITH_ERROR 时,响应中会包含 errorCode。
  835. ALL_BETTING_CLOSED = 当前不允许投注,可能处于系统维护期间。
  836. ALL_LIVE_BETTING_CLOSED = 当前不允许滚球投注,可能处于系统维护期间。
  837. ABOVE_EVENT_MAX = 客户在该盘口上的风险已超允许上限,无法下注。
  838. ABOVE_MAX_BET_AMOUNT = 投注金额超过允许的最大金额。
  839. BELOW_MIN_BET_AMOUNT = 投注金额低于允许的最小金额。
  840. BLOCKED_BETTING = 该客户投注已被暂停。
  841. BLOCKED_CLIENT = 客户已不再活跃。
  842. INSUFFICIENT_FUNDS = 客户余额不足。
  843. INVALID_COUNTRY = 客户所在国家/地区不允许投注。
  844. INVALID_EVENT = 赛事 ID 无效。
  845. INVALID_ODDS_FORMAT = 使用了该客户不允许的赔率格式。
  846. LINE_CHANGED = 投注的盘口已发生变化。
  847. LISTED_PITCHERS_SELECTION_ERROR = 下单请求中 pitcher1MustStart 和/或 pitcher2MustStart 的值不允许。
  848. OFFLINE_EVENT = 赛事已离线,或当前盘口/赔率/投注类型已不再提供。
  849. PAST_CUTOFFTIME = 已过该场投注截止时间。
  850. RED_CARDS_CHANGED = 滚球足球赛事红牌数已变化。
  851. SCORE_CHANGED = 滚球足球赛事比分已变化。
  852. DUPLICATE_UNIQUE_REQUEST_ID = 相同 uniqueRequestId 的请求已处理过,若需重新处理请使用新的 uniqueRequestId。
  853. INCOMPLETE_CUSTOMER_BETTING_PROFILE = 系统配置问题。
  854. INVALID_CUSTOMER_PROFILE = 系统配置问题。
  855. LIMITS_CONFIGURATION_ISSUE = 系统配置问题。
  856. RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED = 客户已达总亏损限额。
  857. RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED = 客户已达总风险限额。
  858. RESUBMIT_REQUEST = 请求有效但无法处理,常见于滚球时同一盘口有多笔下单。此时不保留请求,直接返回错误;盘口可能随后变化。可尽快重新下单以降低 RESUBMIT_REQUEST 概率。
  859. SYSTEM_ERROR_3 = 未预期错误。
  860. LICENCE_RESTRICTION_LIVE_BETTING_BLOCKED = 因牌照限制滚球投注被关闭。
  861. INVALID_HANDICAP = 盘口无效。
  862. BETTING_SUSPENDED = 因市场异常该盘口暂不接受投注,请使用下一个 LineId 重试。
  863. enum:
  864. - ALL_BETTING_CLOSED
  865. - ALL_LIVE_BETTING_CLOSED
  866. - ABOVE_EVENT_MAX
  867. - ABOVE_MAX_BET_AMOUNT
  868. - BELOW_MIN_BET_AMOUNT
  869. - BLOCKED_BETTING
  870. - BLOCKED_CLIENT
  871. - INSUFFICIENT_FUNDS
  872. - INVALID_COUNTRY
  873. - INVALID_EVENT
  874. - INVALID_ODDS_FORMAT
  875. - LINE_CHANGED
  876. - LISTED_PITCHERS_SELECTION_ERROR
  877. - OFFLINE_EVENT
  878. - PAST_CUTOFFTIME
  879. - RED_CARDS_CHANGED
  880. - SCORE_CHANGED
  881. - DUPLICATE_UNIQUE_REQUEST_ID
  882. - INCOMPLETE_CUSTOMER_BETTING_PROFILE
  883. - INVALID_CUSTOMER_PROFILE
  884. - LIMITS_CONFIGURATION_ISSUE
  885. - RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
  886. - RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
  887. - RESUBMIT_REQUEST
  888. - SYSTEM_ERROR_3
  889. - LICENCE_RESTRICTION_LIVE_BETTING_BLOCKED
  890. - INVALID_HANDICAP
  891. - BETTING_SUSPENDED
  892. uniqueRequestId:
  893. type: string
  894. example: D5CC50E4-284D-4D50-8D49-429BDC4F2A48
  895. description: 请求中的 uniqueRequestId 回显。
  896. straightBet:
  897. $ref: '#/definitions/StraightBet'
  898. description: ''
  899. PlaceBetResponseV4:
  900. type: object
  901. properties:
  902. status:
  903. type: string
  904. example: ACCEPTED
  905. description: 响应状态。
  906. enum:
  907. - ACCEPTED
  908. - PENDING_ACCEPTANCE
  909. - PROCESSED_WITH_ERROR
  910. errorCode:
  911. type: string
  912. example: null
  913. x-nullable: true
  914. description: |
  915. 当 Status 为 PROCESSED_WITH_ERROR 时,响应中会包含 errorCode。
  916. ALL_BETTING_CLOSED = 当前不允许投注,可能处于系统维护期间。
  917. ALL_LIVE_BETTING_CLOSED = 当前不允许滚球投注,可能处于系统维护期间。
  918. ABOVE_EVENT_MAX = 客户在该盘口上的风险已超允许上限,无法下注。
  919. ABOVE_MAX_BET_AMOUNT = 投注金额超过允许的最大金额。
  920. BELOW_MIN_BET_AMOUNT = 投注金额低于允许的最小金额。
  921. BLOCKED_BETTING = 该客户投注已被暂停。
  922. BLOCKED_CLIENT = 客户已不再活跃。
  923. INSUFFICIENT_FUNDS = 客户余额不足。
  924. INVALID_COUNTRY = 客户所在国家/地区不允许投注。
  925. INVALID_EVENT = 赛事 ID 无效。
  926. INVALID_ODDS_FORMAT = 使用了该客户不允许的赔率格式。
  927. LINE_CHANGED = 投注的盘口已发生变化。
  928. LISTED_PITCHERS_SELECTION_ERROR = 下单请求中 pitcher1MustStart 和/或 pitcher2MustStart 的值不允许。
  929. OFFLINE_EVENT = 赛事已离线,或当前盘口/赔率/投注类型已不再提供。
  930. PAST_CUTOFFTIME = 已过该场投注截止时间。
  931. RED_CARDS_CHANGED = 滚球足球赛事红牌数已变化。
  932. SCORE_CHANGED = 滚球足球赛事比分已变化。
  933. DUPLICATE_UNIQUE_REQUEST_ID = 相同 uniqueRequestId 的请求已处理过,若需重新处理请使用新的 uniqueRequestId。
  934. INCOMPLETE_CUSTOMER_BETTING_PROFILE = 系统配置问题。
  935. INVALID_CUSTOMER_PROFILE = 系统配置问题。
  936. LIMITS_CONFIGURATION_ISSUE = 系统配置问题。
  937. RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED = 客户已达总亏损限额。
  938. RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED = 客户已达总风险限额。
  939. RESUBMIT_REQUEST = 请求有效但无法处理,常见于滚球时同一盘口有多笔下单。此时不保留请求,直接返回错误;盘口可能随后变化。可尽快重新下单以降低 RESUBMIT_REQUEST 概率。
  940. SYSTEM_ERROR_3 = 未预期错误。
  941. LICENCE_RESTRICTION_LIVE_BETTING_BLOCKED = 因牌照限制滚球投注被关闭。
  942. INVALID_HANDICAP = 盘口无效。
  943. BETTING_SUSPENDED = 因市场异常该盘口暂不接受投注,请使用下一个 LineId 重试。
  944. enum:
  945. - ALL_BETTING_CLOSED
  946. - ALL_LIVE_BETTING_CLOSED
  947. - ABOVE_EVENT_MAX
  948. - ABOVE_MAX_BET_AMOUNT
  949. - BELOW_MIN_BET_AMOUNT
  950. - BLOCKED_BETTING
  951. - BLOCKED_CLIENT
  952. - INSUFFICIENT_FUNDS
  953. - INVALID_COUNTRY
  954. - INVALID_EVENT
  955. - INVALID_ODDS_FORMAT
  956. - LINE_CHANGED
  957. - LISTED_PITCHERS_SELECTION_ERROR
  958. - OFFLINE_EVENT
  959. - PAST_CUTOFFTIME
  960. - RED_CARDS_CHANGED
  961. - SCORE_CHANGED
  962. - DUPLICATE_UNIQUE_REQUEST_ID
  963. - INCOMPLETE_CUSTOMER_BETTING_PROFILE
  964. - INVALID_CUSTOMER_PROFILE
  965. - LIMITS_CONFIGURATION_ISSUE
  966. - RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
  967. - RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
  968. - RESUBMIT_REQUEST
  969. - SYSTEM_ERROR_3
  970. - LICENCE_RESTRICTION_LIVE_BETTING_BLOCKED
  971. - INVALID_HANDICAP
  972. - BETTING_SUSPENDED
  973. uniqueRequestId:
  974. type: string
  975. example: D5CC50E4-284D-4D50-8D49-429BDC4F2A48
  976. description: 请求中的 uniqueRequestId 回显。
  977. betId:
  978. type: integer
  979. format: int64
  980. example: 759629245
  981. description: 投注标识
  982. win:
  983. type: number
  984. format: double
  985. example: 5.5
  986. description: 盈利金额。
  987. risk:
  988. type: number
  989. format: double
  990. example: 10.5
  991. description: 风险金额。
  992. price:
  993. type: number
  994. format: double
  995. example: 2.5
  996. description: 赔率
  997. points:
  998. type: number
  999. format: double
  1000. example: 1
  1001. description: 分数/盘口值
  1002. StraightBet:
  1003. type: object
  1004. required:
  1005. - betId
  1006. - betStatus
  1007. - betType
  1008. - oddsFormat
  1009. - placedAt
  1010. - risk
  1011. - updateSequence
  1012. - wagerNumber
  1013. - win
  1014. properties:
  1015. betId:
  1016. type: integer
  1017. format: int64
  1018. example: 759629245
  1019. description: 投注标识
  1020. wagerNumber:
  1021. type: integer
  1022. format: int32
  1023. example: 1
  1024. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  1025. placedAt:
  1026. type: string
  1027. format: date-time
  1028. example: '2017-09-05T01:32:59Z'
  1029. description: 投注下单时间。
  1030. betStatus:
  1031. type: string
  1032. example: ACCEPTED
  1033. description: |
  1034. 投注状态。
  1035. ACCEPTED = 投注已接受。
  1036. CANCELLED = 按 Pinnacle 规则取消。
  1037. LOSE = 已结算为输。
  1038. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 NOT_ACCEPTED。
  1039. REFUNDED = 赛事取消或投注结算为平局时退款。
  1040. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  1041. WON = 已结算为赢。
  1042. enum:
  1043. - ACCEPTED
  1044. - CANCELLED
  1045. - LOSE
  1046. - PENDING_ACCEPTANCE
  1047. - REFUNDED
  1048. - NOT_ACCEPTED
  1049. - WON
  1050. betType:
  1051. type: string
  1052. example: MONEYLINE
  1053. description: '投注类型。'
  1054. enum:
  1055. - MONEYLINE
  1056. - TEAM_TOTAL_POINTS
  1057. - SPREAD
  1058. - TOTAL_POINTS
  1059. - SPECIAL
  1060. - PARLAY
  1061. - TEASER
  1062. - MANUAL
  1063. win:
  1064. type: number
  1065. format: double
  1066. example: 1
  1067. description: 盈利金额。
  1068. risk:
  1069. type: number
  1070. format: double
  1071. example: 1.5
  1072. description: 风险金额。
  1073. winLoss:
  1074. type: number
  1075. format: double
  1076. example: null
  1077. x-nullable: true
  1078. description: 已结算投注的盈亏。
  1079. oddsFormat:
  1080. $ref: '#/definitions/OddsFormat'
  1081. customerCommission:
  1082. type: number
  1083. format: double
  1084. example: null
  1085. x-nullable: true
  1086. description: Client’s commission on the bet.
  1087. cancellationReason:
  1088. $ref: '#/definitions/CancellationReason'
  1089. updateSequence:
  1090. type: integer
  1091. format: int64
  1092. example: 111548915
  1093. description: 更新序列号
  1094. sportId:
  1095. type: integer
  1096. format: int32
  1097. example: 29
  1098. description: ''
  1099. leagueId:
  1100. type: integer
  1101. format: int32
  1102. example: 2462
  1103. description: ''
  1104. eventId:
  1105. type: integer
  1106. format: int64
  1107. example: 757064557
  1108. description: ''
  1109. handicap:
  1110. type: number
  1111. format: double
  1112. example: null
  1113. x-nullable: true
  1114. description: ''
  1115. price:
  1116. type: number
  1117. format: double
  1118. example: -155
  1119. description: ''
  1120. teamName:
  1121. type: string
  1122. example: Crvena Zvezda
  1123. description: ''
  1124. side:
  1125. type: string
  1126. example: null
  1127. x-nullable: true
  1128. description: '方向类型(大/小)。'
  1129. enum:
  1130. - OVER
  1131. - UNDER
  1132. pitcher1:
  1133. type: string
  1134. example: null
  1135. x-nullable: true
  1136. description: '主队(team1)先发投手姓名。仅棒球。'
  1137. pitcher2:
  1138. type: string
  1139. example: null
  1140. x-nullable: true
  1141. description: '客队(team2)先发投手姓名。仅棒球。'
  1142. pitcher1MustStart:
  1143. type: string
  1144. enum:
  1145. - TRUE
  1146. - FALSE
  1147. example: null
  1148. x-nullable: true
  1149. description: '主队投手是否必须先发。仅棒球。'
  1150. pitcher2MustStart:
  1151. type: string
  1152. enum:
  1153. - TRUE
  1154. - FALSE
  1155. example: null
  1156. x-nullable: true
  1157. description: '主队投手是否必须先发。仅棒球。'
  1158. team1:
  1159. type: string
  1160. example: Crvena Zvezda
  1161. description: ''
  1162. team2:
  1163. type: string
  1164. example: Partizan
  1165. description: ''
  1166. periodNumber:
  1167. type: integer
  1168. format: int32
  1169. example: 0
  1170. description: ''
  1171. team1Score:
  1172. type: number
  1173. format: double
  1174. example: null
  1175. x-nullable: true
  1176. description: '下注时的主队比分,仅滚球。'
  1177. team2Score:
  1178. type: number
  1179. format: double
  1180. example: null
  1181. x-nullable: true
  1182. description: '下注时的客队比分,仅滚球。'
  1183. ftTeam1Score:
  1184. type: number
  1185. format: double
  1186. example: null
  1187. x-nullable: true
  1188. description: '全场主队比分,仅已结算投注。'
  1189. ftTeam2Score:
  1190. type: number
  1191. format: double
  1192. example: null
  1193. x-nullable: true
  1194. description: '全场客队比分,仅已结算投注。'
  1195. pTeam1Score:
  1196. type: number
  1197. format: double
  1198. example: null
  1199. x-nullable: true
  1200. description: '节末主队比分,仅已结算投注。若投注为全场(periodNumber=0)则为 null。'
  1201. pTeam2Score:
  1202. type: number
  1203. format: double
  1204. example: null
  1205. x-nullable: true
  1206. description: '节末客队比分,仅已结算投注。若投注为全场(periodNumber=0)则为 null。'
  1207. isLive:
  1208. type: string
  1209. enum:
  1210. - TRUE
  1211. - FALSE
  1212. example: "FALSE"
  1213. description: 是否为滚球赛事投注
  1214. description: ''
  1215. StraightBetV3:
  1216. type: object
  1217. required:
  1218. - betId
  1219. - betStatus
  1220. - betStatus2
  1221. - betType
  1222. - oddsFormat
  1223. - placedAt
  1224. - risk
  1225. - updateSequence
  1226. - wagerNumber
  1227. - win
  1228. properties:
  1229. betId:
  1230. type: integer
  1231. format: int64
  1232. example: 759629245
  1233. description: 投注标识
  1234. wagerNumber:
  1235. type: integer
  1236. format: int32
  1237. example: 1
  1238. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  1239. placedAt:
  1240. type: string
  1241. format: date-time
  1242. example: '2017-09-05T01:32:59Z'
  1243. description: 投注下单时间。
  1244. betStatus:
  1245. type: string
  1246. example: ACCEPTED
  1247. description: |
  1248. Bet Status.
  1249. ACCEPTED = 投注已接受。
  1250. CANCELLED = 按 Pinnacle 规则取消。
  1251. LOSE = 已结算为输。
  1252. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 NOT_ACCEPTED。
  1253. REFUNDED = 赛事取消或投注结算为平局时退款。
  1254. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  1255. WON = 已结算为赢。
  1256. REJECTED = 投注被拒绝
  1257. enum:
  1258. - ACCEPTED
  1259. - CANCELLED
  1260. - LOSE
  1261. - PENDING_ACCEPTANCE
  1262. - REFUNDED
  1263. - NOT_ACCEPTED
  1264. - WON
  1265. - REJECTED
  1266. betStatus2:
  1267. type: string
  1268. example: ACCEPTED
  1269. description: |
  1270. 投注状态。
  1271. ACCEPTED = 投注已接受。
  1272. CANCELLED = 按 Pinnacle 规则取消。
  1273. LOST = 已结算为输。
  1274. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 NOT_ACCEPTED。
  1275. REFUNDED = 赛事取消或投注结算为平局时退款。
  1276. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  1277. WON = 已结算为赢。
  1278. REJECTED = 投注被拒绝。
  1279. HALF_WON_HALF_PUSHED = 半赢半走。仅亚洲让分盘。
  1280. HALF_LOST_HALF_PUSHED = 半输半走。仅亚洲让分盘。
  1281. enum:
  1282. - ACCEPTED
  1283. - CANCELLED
  1284. - LOST
  1285. - PENDING_ACCEPTANCE
  1286. - REFUNDED
  1287. - NOT_ACCEPTED
  1288. - WON
  1289. - REJECTED
  1290. - HALF_WON_HALF_PUSHED
  1291. - HALF_LOST_HALF_PUSHED
  1292. betType:
  1293. type: string
  1294. example: MONEYLINE
  1295. description: '投注类型。'
  1296. enum:
  1297. - MONEYLINE
  1298. - TEAM_TOTAL_POINTS
  1299. - SPREAD
  1300. - TOTAL_POINTS
  1301. - SPECIAL
  1302. - PARLAY
  1303. - TEASER
  1304. - MANUAL
  1305. win:
  1306. type: number
  1307. format: double
  1308. example: 1
  1309. description: 盈利金额。
  1310. risk:
  1311. type: number
  1312. format: double
  1313. example: 1.5
  1314. description: 风险金额。
  1315. winLoss:
  1316. type: number
  1317. format: double
  1318. example: null
  1319. x-nullable: true
  1320. description: 已结算投注的盈亏。
  1321. oddsFormat:
  1322. $ref: '#/definitions/OddsFormat'
  1323. customerCommission:
  1324. type: number
  1325. format: double
  1326. example: null
  1327. x-nullable: true
  1328. description: Client’s commission on the bet.
  1329. cancellationReason:
  1330. $ref: '#/definitions/CancellationReason'
  1331. updateSequence:
  1332. type: integer
  1333. format: int64
  1334. example: 111548915
  1335. description: 更新序列号
  1336. sportId:
  1337. type: integer
  1338. format: int32
  1339. example: 29
  1340. description: ''
  1341. leagueId:
  1342. type: integer
  1343. format: int32
  1344. example: 2462
  1345. description: ''
  1346. eventId:
  1347. type: integer
  1348. format: int64
  1349. example: 757064557
  1350. description: ''
  1351. handicap:
  1352. type: number
  1353. format: double
  1354. example: null
  1355. x-nullable: true
  1356. description: ''
  1357. price:
  1358. type: number
  1359. format: double
  1360. example: -155
  1361. description: ''
  1362. teamName:
  1363. type: string
  1364. example: Crvena Zvezda
  1365. description: ''
  1366. side:
  1367. type: string
  1368. example: null
  1369. x-nullable: true
  1370. description: '方向类型(大/小)。'
  1371. enum:
  1372. - OVER
  1373. - UNDER
  1374. pitcher1:
  1375. type: string
  1376. example: null
  1377. x-nullable: true
  1378. description: '主队(team1)先发投手姓名。仅棒球。'
  1379. pitcher2:
  1380. type: string
  1381. example: null
  1382. x-nullable: true
  1383. description: '客队(team2)先发投手姓名。仅棒球。'
  1384. pitcher1MustStart:
  1385. type: boolean
  1386. example: false
  1387. description: '仅棒球。指主队先发投手。仅 MONEYLINE 可设,其他类型须为 TRUE。'
  1388. x-nullable: true
  1389. pitcher2MustStart:
  1390. type: boolean
  1391. example: false
  1392. description: '仅棒球。指客队先发投手。仅 MONEYLINE 可设,其他类型须为 TRUE。'
  1393. x-nullable: true
  1394. team1:
  1395. type: string
  1396. example: Crvena Zvezda
  1397. description: ''
  1398. team2:
  1399. type: string
  1400. example: Partizan
  1401. description: ''
  1402. periodNumber:
  1403. type: integer
  1404. format: int32
  1405. example: 0
  1406. description: ''
  1407. team1Score:
  1408. type: number
  1409. format: double
  1410. example: null
  1411. x-nullable: true
  1412. description: '下注时该节主队比分,仅滚球。'
  1413. team2Score:
  1414. type: number
  1415. format: double
  1416. example: null
  1417. x-nullable: true
  1418. description: '下注时该节客队比分,仅滚球。'
  1419. ftTeam1Score:
  1420. type: number
  1421. format: double
  1422. example: null
  1423. x-nullable: true
  1424. description: '全场主队比分,仅已结算投注。'
  1425. ftTeam2Score:
  1426. type: number
  1427. format: double
  1428. example: null
  1429. x-nullable: true
  1430. description: '全场客队比分,仅已结算投注。'
  1431. pTeam1Score:
  1432. type: number
  1433. format: double
  1434. example: null
  1435. x-nullable: true
  1436. 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 . '
  1437. pTeam2Score:
  1438. type: number
  1439. format: double
  1440. example: null
  1441. x-nullable: true
  1442. 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'
  1443. isLive:
  1444. type: boolean
  1445. example: false
  1446. description: 是否为滚球赛事投注
  1447. eventStartTime:
  1448. type: string
  1449. format: date-time
  1450. example: 2017-10-05T01:32:59Z
  1451. x-nullable: false
  1452. description: '赛事开始时间。'
  1453. resultingUnit:
  1454. type: string
  1455. description: '赛事结算依据,如角球、黄牌、常规等'
  1456. description: ''
  1457. StraightBetRegradedWagerHistoryV1:
  1458. type: object
  1459. required:
  1460. - betId
  1461. - betStatus
  1462. - betStatus2
  1463. - betType
  1464. - oddsFormat
  1465. - placedAt
  1466. - risk
  1467. - updateSequence
  1468. - wagerNumber
  1469. - win
  1470. properties:
  1471. betId:
  1472. type: integer
  1473. format: int64
  1474. example: 759629245
  1475. description: 投注标识
  1476. originalBetId:
  1477. type: integer
  1478. format: int64
  1479. example: 759629321
  1480. description: 原始投注标识
  1481. wagerNumber:
  1482. type: integer
  1483. format: int32
  1484. example: 1
  1485. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  1486. placedAt:
  1487. type: string
  1488. format: date-time
  1489. example: '2017-09-05T01:32:59Z'
  1490. description: 投注下单时间。
  1491. betStatus:
  1492. type: string
  1493. example: ACCEPTED
  1494. description: |
  1495. Bet Status.
  1496. ACCEPTED = 投注已接受。
  1497. CANCELLED = 按 Pinnacle 规则取消。
  1498. LOSE = 已结算为输。
  1499. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 NOT_ACCEPTED。
  1500. REFUNDED = 赛事取消或投注结算为平局时退款。
  1501. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  1502. WON = 已结算为赢。
  1503. REJECTED = 投注被拒绝
  1504. enum:
  1505. - ACCEPTED
  1506. - CANCELLED
  1507. - LOSE
  1508. - PENDING_ACCEPTANCE
  1509. - REFUNDED
  1510. - NOT_ACCEPTED
  1511. - WON
  1512. - REJECTED
  1513. betStatus2:
  1514. type: string
  1515. example: ACCEPTED
  1516. description: |
  1517. 投注状态。
  1518. ACCEPTED = 投注已接受。
  1519. CANCELLED = 按 Pinnacle 规则取消。
  1520. LOST = 已结算为输。
  1521. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 NOT_ACCEPTED。
  1522. REFUNDED = 赛事取消或投注结算为平局时退款。
  1523. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  1524. WON = 已结算为赢。
  1525. REJECTED = 投注被拒绝。
  1526. HALF_WON_HALF_PUSHED = 半赢半走。仅亚洲让分盘。
  1527. HALF_LOST_HALF_PUSHED = 半输半走。仅亚洲让分盘。
  1528. enum:
  1529. - ACCEPTED
  1530. - CANCELLED
  1531. - LOST
  1532. - PENDING_ACCEPTANCE
  1533. - REFUNDED
  1534. - NOT_ACCEPTED
  1535. - WON
  1536. - REJECTED
  1537. - HALF_WON_HALF_PUSHED
  1538. - HALF_LOST_HALF_PUSHED
  1539. betType:
  1540. type: string
  1541. example: MONEYLINE
  1542. description: '投注类型。'
  1543. enum:
  1544. - MONEYLINE
  1545. - TEAM_TOTAL_POINTS
  1546. - SPREAD
  1547. - TOTAL_POINTS
  1548. - SPECIAL
  1549. - PARLAY
  1550. - TEASER
  1551. - MANUAL
  1552. win:
  1553. type: number
  1554. format: double
  1555. example: 1
  1556. description: 盈利金额。
  1557. risk:
  1558. type: number
  1559. format: double
  1560. example: 1.5
  1561. description: 风险金额。
  1562. winLoss:
  1563. type: number
  1564. format: double
  1565. example: null
  1566. x-nullable: true
  1567. description: 已结算投注的盈亏。
  1568. oddsFormat:
  1569. $ref: '#/definitions/OddsFormat'
  1570. customerCommission:
  1571. type: number
  1572. format: double
  1573. example: null
  1574. x-nullable: true
  1575. description: Client’s commission on the bet.
  1576. cancellationReason:
  1577. $ref: '#/definitions/CancellationReason'
  1578. updateSequence:
  1579. type: integer
  1580. format: int64
  1581. example: 111548915
  1582. description: 更新序列号
  1583. sportId:
  1584. type: integer
  1585. format: int32
  1586. example: 29
  1587. description: ''
  1588. leagueId:
  1589. type: integer
  1590. format: int32
  1591. example: 2462
  1592. description: ''
  1593. leagueName:
  1594. type: string
  1595. example: Spain - Copa del Rey
  1596. description: ''
  1597. eventId:
  1598. type: integer
  1599. format: int64
  1600. example: 757064557
  1601. description: ''
  1602. handicap:
  1603. type: number
  1604. format: double
  1605. example: null
  1606. x-nullable: true
  1607. description: ''
  1608. price:
  1609. type: number
  1610. format: double
  1611. example: -155
  1612. description: ''
  1613. teamName:
  1614. type: string
  1615. example: Crvena Zvezda
  1616. description: ''
  1617. side:
  1618. type: string
  1619. example: null
  1620. x-nullable: true
  1621. description: '方向类型(大/小)。'
  1622. enum:
  1623. - OVER
  1624. - UNDER
  1625. pitcher1:
  1626. type: string
  1627. example: null
  1628. x-nullable: true
  1629. description: '主队(team1)先发投手姓名。仅棒球。'
  1630. pitcher2:
  1631. type: string
  1632. example: null
  1633. x-nullable: true
  1634. description: '客队(team2)先发投手姓名。仅棒球。'
  1635. pitcher1MustStart:
  1636. type: boolean
  1637. example: false
  1638. description: '仅棒球。指主队先发投手。仅 MONEYLINE 可设,其他类型须为 TRUE。'
  1639. x-nullable: true
  1640. pitcher2MustStart:
  1641. type: boolean
  1642. example: false
  1643. description: '仅棒球。指客队先发投手。仅 MONEYLINE 可设,其他类型须为 TRUE。'
  1644. x-nullable: true
  1645. team1:
  1646. type: string
  1647. example: Crvena Zvezda
  1648. description: ''
  1649. team2:
  1650. type: string
  1651. example: Partizan
  1652. description: ''
  1653. periodNumber:
  1654. type: integer
  1655. format: int32
  1656. example: 0
  1657. description: ''
  1658. team1Score:
  1659. type: number
  1660. format: double
  1661. example: null
  1662. x-nullable: true
  1663. description: '下注时该节主队比分,仅滚球。'
  1664. team2Score:
  1665. type: number
  1666. format: double
  1667. example: null
  1668. x-nullable: true
  1669. description: '下注时该节客队比分,仅滚球。'
  1670. ftTeam1Score:
  1671. type: number
  1672. format: double
  1673. example: null
  1674. x-nullable: true
  1675. description: '全场主队比分,仅已结算投注。'
  1676. ftTeam2Score:
  1677. type: number
  1678. format: double
  1679. example: null
  1680. x-nullable: true
  1681. description: '全场客队比分,仅已结算投注。'
  1682. pTeam1Score:
  1683. type: number
  1684. format: double
  1685. example: null
  1686. x-nullable: true
  1687. 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 . '
  1688. pTeam2Score:
  1689. type: number
  1690. format: double
  1691. example: null
  1692. x-nullable: true
  1693. 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'
  1694. isLive:
  1695. type: boolean
  1696. example: false
  1697. description: 是否为滚球赛事投注
  1698. eventStartTime:
  1699. type: string
  1700. format: date-time
  1701. example: 2017-10-05T01:32:59Z
  1702. x-nullable: false
  1703. description: '赛事开始时间。'
  1704. resultingUnit:
  1705. type: string
  1706. description: '赛事结算依据,如角球、黄牌、常规等'
  1707. description: ''
  1708. CancellationReason:
  1709. type: object
  1710. required:
  1711. - code
  1712. properties:
  1713. code:
  1714. type: string
  1715. example: FBS_CW_227
  1716. details:
  1717. $ref: '#/definitions/CancellationDetails'
  1718. description: |
  1719. Possible keys \:
  1720. * correctTeam1Id
  1721. * correctTeam2Id
  1722. * correctListedPitcher1
  1723. * correctListedPitcher2
  1724. * correctSpread
  1725. * correctTotalPoints
  1726. * correctTeam1TotalPoints
  1727. * correctTeam2TotalPoints
  1728. * correctTeam1Score
  1729. * correctTeam2Score
  1730. * correctTeam1TennisSetsScore
  1731. * correctTeam2TennisSetsScore
  1732. CancellationDetails:
  1733. type: array
  1734. items:
  1735. - $ref: "#/definitions/CancellationDetailsItem"
  1736. example: [
  1737. {
  1738. "key": "correctSpread",
  1739. "value": "-1.5"
  1740. }
  1741. ]
  1742. CancellationDetailsItem:
  1743. type: object
  1744. properties:
  1745. key:
  1746. type: string
  1747. example: correctSpread
  1748. value:
  1749. type: string
  1750. example: "1.5"
  1751. ErrorResponseWithErrorRef:
  1752. type: object
  1753. properties:
  1754. ref:
  1755. type: string
  1756. example: f5d9ba85-cc97-47a9-ad92-ea57d0ea2cc0
  1757. code:
  1758. type: string
  1759. example: UNEXPECTED_ERROR
  1760. message:
  1761. type: string
  1762. example: Internal error
  1763. PlaceParlayBetRequest:
  1764. type: object
  1765. properties:
  1766. uniqueRequestId:
  1767. type: string
  1768. format: uuid
  1769. example: A9EB2EB1-13A5-4600-9F1B-4859379CDEC4
  1770. description: This unique id of the place bet requests. This is to support idempotent requests.
  1771. acceptBetterLine:
  1772. type: boolean
  1773. example: true
  1774. description: 当盘口变化对客户有利时是否接受该投注。
  1775. riskAmount:
  1776. type: number
  1777. format: double
  1778. example: 10.5
  1779. 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.'
  1780. oddsFormat:
  1781. $ref: '#/definitions/OddsFormat'
  1782. legs:
  1783. type: array
  1784. description: Collection of parlay legs.
  1785. items:
  1786. $ref: '#/definitions/ParlayLegRequest'
  1787. roundRobinOptions:
  1788. type: array
  1789. description: ''
  1790. items:
  1791. type: string
  1792. enum:
  1793. - Parlay
  1794. - TwoLegRoundRobin
  1795. - ThreeLegRoundRobin
  1796. - FourLegRoundRobin
  1797. - FiveLegRoundRobin
  1798. - SixLegRoundRobin
  1799. - SevenLegRoundRobin
  1800. - EightLegRoundRobin
  1801. description: Request to place a bet
  1802. ParlayLegRequest:
  1803. type: object
  1804. properties:
  1805. uniqueLegId:
  1806. type: string
  1807. example: CFAD8ACF-E410-437C-8F0F-33611F565981
  1808. description: Unique id of the leg. It's used to identify and match legs in the response.
  1809. lineId:
  1810. type: integer
  1811. format: int64
  1812. example: 419715968
  1813. description: 盘口标识。
  1814. altLineId:
  1815. type: integer
  1816. format: int64
  1817. example: null
  1818. x-nullable: true
  1819. description: 备用盘口标识。
  1820. pitcher1MustStart:
  1821. type: boolean
  1822. example: false
  1823. description: 'Baseball only. Refers to the pitcher for Team1. This applicable only for MONEYLINE bet type, for all other bet types this has to be TRUE.'
  1824. pitcher2MustStart:
  1825. type: boolean
  1826. example: false
  1827. description: '仅棒球。指客队(Team2)先发投手。仅 MONEYLINE 投注类型可设,其他类型须为 TRUE。'
  1828. sportId:
  1829. type: integer
  1830. format: int32
  1831. example: 29
  1832. description: Sport identification.
  1833. eventId:
  1834. type: integer
  1835. format: int64
  1836. example: 758023991
  1837. description: Event identification.
  1838. periodNumber:
  1839. type: integer
  1840. format: int32
  1841. example: 0
  1842. description: 'This represents the period of the match. For example, for soccer we have: 0 - Game, 1 - 1st Half and 2 - 2nd Half'
  1843. legBetType:
  1844. type: string
  1845. example: MONELYLINE
  1846. description: 'Only SPREAD, MONEYLINE, TOTAL_POINTS and TEAM_TOTAL_POINTS are supported.'
  1847. enum:
  1848. - MONEYLINE
  1849. - SPREAD
  1850. - TOTAL_POINTS
  1851. - TEAM_TOTAL_POINTS
  1852. team:
  1853. type: string
  1854. example: TEAM1
  1855. description: Chosen team type. This is needed only for SPREAD and MONEYLINE bet types.
  1856. side:
  1857. type: string
  1858. example: null
  1859. x-nullable: true
  1860. description: 'Chosen side type. This is needed only for TOTAL_POINTS bet type.'
  1861. enum:
  1862. - OVER
  1863. - UNDER
  1864. description: ''
  1865. PlaceParlayBetResponseV2:
  1866. type: object
  1867. properties:
  1868. status:
  1869. type: string
  1870. example: ACCEPTED
  1871. description: 响应状态。
  1872. enum:
  1873. - ACCEPTED
  1874. - PENDING_ACCEPTANCE
  1875. - PROCESSED_WITH_ERROR
  1876. errorCode:
  1877. type: string
  1878. example: null
  1879. x-nullable: true
  1880. description: |
  1881. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  1882. ABOVE_MAX_BET_AMOUNT = Stake is above allowed maximum amount,
  1883. ALL_BETTING_CLOSED = Betting is not allowed at this moment,
  1884. BELOW_MIN_BET_AMOUNT = Stake is below allowed minimum amount,
  1885. BLOCKED_BETTING = Betting is suspended for the client,
  1886. BLOCKED_CLIENT = Client is no longer active,
  1887. INSUFFICIENT_FUNDS = Bet is submitted by a client with insufficient funds,
  1888. INVALID_COUNTRY = Client country is not allowed for betting,
  1889. INVALID_LEGS = One or more legs are invalid,
  1890. INVALID_ODDS_FORMAT = If a bet was submitted with the odds format that is not allowed for the client,
  1891. INVALID_ROUND_ROBIN_OPTIONS = Round robin options are invalid (i.e. does not match with number of legs),
  1892. ROUND_ROBIN_DISALLOWED = Round robin is disallowed for one of the leagues,
  1893. TOO_MANY_LEGS = Maximum of 10 legs can be specified,
  1894. TOO_FEW_LEGS = At least 2 legs are required for Parlay,
  1895. RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED = Client has reached his total loss limit,
  1896. RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED = Client has reached his total risk limit,
  1897. INVALID_REQUEST = Request has invalid parameters,
  1898. DUPLICATE_UNIQUE_REQUEST_ID = Request with the same uniqueRequestId was already processed. Please set the new value if you still want the request to be processed,
  1899. SYSTEM_ERROR_3 = Unexpected error
  1900. enum:
  1901. - ABOVE_MAX_BET_AMOUNT
  1902. - ALL_BETTING_CLOSED
  1903. - BELOW_MIN_BET_AMOUNT
  1904. - BLOCKED_BETTING
  1905. - BLOCKED_CLIENT
  1906. - INSUFFICIENT_FUNDS
  1907. - INVALID_COUNTRY
  1908. - INVALID_LEGS
  1909. - INVALID_ODDS_FORMAT
  1910. - INVALID_ROUND_ROBIN_OPTIONS
  1911. - ROUND_ROBIN_DISALLOWED
  1912. - TOO_MANY_LEGS
  1913. - TOO_FEW_LEGS
  1914. - RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
  1915. - RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
  1916. - INVALID_REQUEST
  1917. - DUPLICATE_UNIQUE_REQUEST_ID
  1918. - SYSTEM_ERROR_3
  1919. betId:
  1920. type: integer
  1921. format: int64
  1922. example: 759629245
  1923. description: Id of a newly created bet.
  1924. uniqueRequestId:
  1925. type: string
  1926. format: uuid
  1927. example: D5CC50E4-284D-4D50-8D49-429BDC4F2A48
  1928. description: Unique identifier provided in the request.
  1929. roundRobinOptionWithOdds:
  1930. type: array
  1931. description: Provides array with all acceptable Round Robin options with parlay odds for that option.
  1932. items:
  1933. $ref: '#/definitions/RoundRobinOptionWithOdds'
  1934. maxRiskStake:
  1935. type: number
  1936. format: double
  1937. description: Maximum stake amount
  1938. minRiskStake:
  1939. type: number
  1940. format: double
  1941. description: Minimum stake amount
  1942. validLegs:
  1943. type: array
  1944. description: Collection of valid legs (format described below). Can be empty if no valid legs found.
  1945. items:
  1946. $ref: '#/definitions/ParlayLegResponse'
  1947. invalidLegs:
  1948. type: array
  1949. description: The collection of legs that resulted in error (format described below). Can be empty if no invalid legs found.
  1950. items:
  1951. $ref: '#/definitions/ParlayLegResponse'
  1952. parlayBet:
  1953. $ref: '#/definitions/ParlayBetV2'
  1954. description: ''
  1955. PlaceParlayBetResponseV4:
  1956. type: object
  1957. properties:
  1958. status:
  1959. type: string
  1960. example: ACCEPTED
  1961. description: 响应状态。
  1962. enum:
  1963. - ACCEPTED
  1964. - PENDING_ACCEPTANCE
  1965. - PROCESSED_WITH_ERROR
  1966. errorCode:
  1967. type: string
  1968. example: null
  1969. x-nullable: true
  1970. description: |
  1971. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  1972. ABOVE_MAX_BET_AMOUNT = Stake is above allowed maximum amount,
  1973. ALL_BETTING_CLOSED = Betting is not allowed at this moment,
  1974. BELOW_MIN_BET_AMOUNT = Stake is below allowed minimum amount,
  1975. BLOCKED_BETTING = Betting is suspended for the client,
  1976. BLOCKED_CLIENT = Client is no longer active,
  1977. INSUFFICIENT_FUNDS = Bet is submitted by a client with insufficient funds,
  1978. INVALID_COUNTRY = Client country is not allowed for betting,
  1979. INVALID_LEGS = One or more legs are invalid,
  1980. INVALID_ODDS_FORMAT = If a bet was submitted with the odds format that is not allowed for the client,
  1981. INVALID_ROUND_ROBIN_OPTIONS = Round robin options are invalid (i.e. does not match with number of legs),
  1982. ROUND_ROBIN_DISALLOWED = Round robin is disallowed for one of the leagues,
  1983. TOO_MANY_LEGS = Maximum of 10 legs can be specified,
  1984. TOO_FEW_LEGS = At least 2 legs are required for Parlay,
  1985. RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED = Client has reached his total loss limit,
  1986. RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED = Client has reached his total risk limit,
  1987. INVALID_REQUEST = Request has invalid parameters,
  1988. DUPLICATE_UNIQUE_REQUEST_ID = Request with the same uniqueRequestId was already processed. Please set the new value if you still want the request to be processed,
  1989. SYSTEM_ERROR_3 = Unexpected error
  1990. enum:
  1991. - ABOVE_MAX_BET_AMOUNT
  1992. - ALL_BETTING_CLOSED
  1993. - BELOW_MIN_BET_AMOUNT
  1994. - BLOCKED_BETTING
  1995. - BLOCKED_CLIENT
  1996. - INSUFFICIENT_FUNDS
  1997. - INVALID_COUNTRY
  1998. - INVALID_LEGS
  1999. - INVALID_ODDS_FORMAT
  2000. - INVALID_ROUND_ROBIN_OPTIONS
  2001. - ROUND_ROBIN_DISALLOWED
  2002. - TOO_MANY_LEGS
  2003. - TOO_FEW_LEGS
  2004. - RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
  2005. - RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
  2006. - INVALID_REQUEST
  2007. - DUPLICATE_UNIQUE_REQUEST_ID
  2008. - SYSTEM_ERROR_3
  2009. betId:
  2010. type: integer
  2011. format: int64
  2012. example: 759629245
  2013. description: Id of a newly created bet.
  2014. uniqueRequestId:
  2015. type: string
  2016. format: uuid
  2017. example: D5CC50E4-284D-4D50-8D49-429BDC4F2A48
  2018. description: Unique identifier provided in the request.
  2019. roundRobinOptionWithOdds:
  2020. type: array
  2021. description: Provides array with all acceptable Round Robin options with parlay odds for that option.
  2022. items:
  2023. $ref: '#/definitions/RoundRobinOptionWithOdds'
  2024. validLegs:
  2025. type: array
  2026. description: Collection of valid legs (format described below). Can be empty if no valid legs found.
  2027. items:
  2028. $ref: '#/definitions/ParlayLegResponseV4'
  2029. invalidLegs:
  2030. type: array
  2031. description: The collection of legs that resulted in error (format described below). Can be empty if no invalid legs found.
  2032. items:
  2033. $ref: '#/definitions/ParlayLegResponseV4'
  2034. wagers:
  2035. type: array
  2036. description: The collection of returning wagers
  2037. items:
  2038. $ref: '#/definitions/ParlayWagerV4Response'
  2039. description: ''
  2040. ParlayWagerV4Response:
  2041. type: object
  2042. properties:
  2043. wagerNumber:
  2044. type: number
  2045. format: int32
  2046. example: 1
  2047. description: Wager number.
  2048. win:
  2049. type: number
  2050. format: double
  2051. example: 5.5
  2052. description: 盈利金额。
  2053. risk:
  2054. type: number
  2055. format: double
  2056. example: 10.5
  2057. description: 风险金额。
  2058. price:
  2059. type: number
  2060. format: double
  2061. example: 7.1
  2062. description: 赔率 amount.
  2063. legIds:
  2064. type: array
  2065. example: ["A9EB2EB1-13A5-4600-9F1B-4859379CDEC4", "CFAD8ACF-E410-437C-8F0F-33611F565981"]
  2066. description: Collection of leg ids of the wager.
  2067. items:
  2068. type: string
  2069. format: uuid
  2070. example: A9EB2EB1-13A5-4600-9F1B-4859379CDEC4
  2071. RoundRobinOptionWithOdds:
  2072. type: object
  2073. properties:
  2074. roundRobinOption:
  2075. type: string
  2076. example: Parlay
  2077. description: ''
  2078. enum:
  2079. - Parlay
  2080. - TwoLegRoundRobin
  2081. - ThreeLegRoundRobin
  2082. - FourLegRoundRobin
  2083. - FiveLegRoundRobin
  2084. - SixLegRoundRobin
  2085. - SevenLegRoundRobin
  2086. - EightLegRoundRobin
  2087. odds:
  2088. type: number
  2089. format: double
  2090. example: 682
  2091. description: Parlay odds for this option.
  2092. unroundedDecimalOdds:
  2093. type: number
  2094. format: double
  2095. example: 7.8231
  2096. description: Unrounded parlay odds in decimal format to be used for calculations only
  2097. description: ''
  2098. ParlayLegResponse:
  2099. type: object
  2100. properties:
  2101. status:
  2102. type: string
  2103. example: VALID
  2104. description: Status of the request.
  2105. enum:
  2106. - PROCESSED_WITH_ERROR
  2107. - VALID
  2108. errorCode:
  2109. type: string
  2110. example: null
  2111. x-nullable: true
  2112. description: |
  2113. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  2114. CANNOT_PARLAY_LIVE_GAME = The wager is placed on Live game,
  2115. CORRELATED = The leg is correlated with another one,
  2116. EVENT_NO_LONGER_AVAILABLE_FOR_BETTING = The event is no longer offered,
  2117. EVENT_NOT_OFFERED_FOR_PARLAY = The event is not offered for parlaying,
  2118. INVALID_EVENT = Live betting is not allowed at this moment,
  2119. INVALID_LEG_BET_TYPE = Leg bet type is not accepted for parlaying. Accepted values are SPREAD, MONEYLINE, TOTAL_POINTS,
  2120. INVALID_PARLAY_BET = The leg did not validated due to error on Parlay Bet. Check the error PlaceParlayBet response for error details,
  2121. LINE_CHANGED = Bet is submitted on a line that has changed,
  2122. LINE_DOES_NOT_BELONG_TO_EVENT = LineId does not match the EventId specified in the request,
  2123. LISTED_PITCHERS_SELECTION_ERROR = If bet was submitted with pitcher1MustStart and/or pitcher2MustStart parameters with values that are not allowed,
  2124. ODDS_NO_LONGER_OFFERED_FOR_PARLAY_1 = Due to line change odds are not offered for parlaying,
  2125. ODDS_NO_LONGER_OFFERED_FOR_PARLAY_2 = Due to line change odds are not offered for parlaying,
  2126. ODDS_NO_LONGER_OFFERED_FOR_PARLAY_3 = Due to line change odds are not offered for parlaying,
  2127. OFFLINE_EVENT = Bet is submitted on an event that is offline or with incorrect lineId,
  2128. PAST_CUTOFFTIME = Bet is submitted on a game after the betting cutoff time,
  2129. SYSTEM_ERROR_1 = Unexpected error,
  2130. SYSTEM_ERROR_2 = Unexpected error,
  2131. SYSTEM_ERROR_3 = Unexpected error,
  2132. LINE_IS_NOT_AVAILABLE = Line is not available for the specified Parlay Leg,
  2133. BETTING_SUSPENDED = Due to anomalous market circumstances bets are not currently being accepted on this line. Try again with next LineId.
  2134. enum:
  2135. - CANNOT_PARLAY_LIVE_GAME
  2136. - CORRELATED
  2137. - EVENT_NO_LONGER_AVAILABLE_FOR_BETTING
  2138. - EVENT_NOT_OFFERED_FOR_PARLAY
  2139. - INVALID_EVENT
  2140. - INVALID_LEG_BET_TYPE
  2141. - INVALID_PARLAY_BET
  2142. - LINE_CHANGED
  2143. - LINE_DOES_NOT_BELONG_TO_EVENT
  2144. - LISTED_PITCHERS_SELECTION_ERROR
  2145. - ODDS_NO_LONGER_OFFERED_FOR_PARLAY_1
  2146. - ODDS_NO_LONGER_OFFERED_FOR_PARLAY_2
  2147. - ODDS_NO_LONGER_OFFERED_FOR_PARLAY_3
  2148. - OFFLINE_EVENT
  2149. - PAST_CUTOFFTIME
  2150. - SYSTEM_ERROR_1
  2151. - SYSTEM_ERROR_2
  2152. - SYSTEM_ERROR_3
  2153. - LINE_IS_NOT_AVAILABLE
  2154. - BETTING_SUSPENDED
  2155. legId:
  2156. type: string
  2157. format: uuid
  2158. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2159. description: Echo of the legId from the request.
  2160. lineId:
  2161. type: integer
  2162. format: int64
  2163. example: 419715968
  2164. description: Line identification that bet was placed on.
  2165. altLineId:
  2166. type: integer
  2167. format: int64
  2168. example: null
  2169. x-nullable: true
  2170. description: 'If bet was accepted on alternate line, the altLineId will be returned.'
  2171. price:
  2172. type: number
  2173. format: double
  2174. example: 167
  2175. description: 赔率 that the bet was placed on.
  2176. correlatedLegs:
  2177. type: array
  2178. description: If errorCode is CORRELATED will contain legIds of all correlated legs.
  2179. items:
  2180. type: string
  2181. format: uuid
  2182. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2183. description: ''
  2184. ParlayLegResponseV4:
  2185. type: object
  2186. properties:
  2187. status:
  2188. type: string
  2189. example: VALID
  2190. description: Status of the request.
  2191. enum:
  2192. - PROCESSED_WITH_ERROR
  2193. - VALID
  2194. errorCode:
  2195. type: string
  2196. example: null
  2197. x-nullable: true
  2198. description: |
  2199. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  2200. CANNOT_PARLAY_LIVE_GAME = The wager is placed on Live game,
  2201. CORRELATED = The leg is correlated with another one,
  2202. EVENT_NO_LONGER_AVAILABLE_FOR_BETTING = The event is no longer offered,
  2203. EVENT_NOT_OFFERED_FOR_PARLAY = The event is not offered for parlaying,
  2204. INVALID_EVENT = Live betting is not allowed at this moment,
  2205. INVALID_LEG_BET_TYPE = Leg bet type is not accepted for parlaying. Accepted values are SPREAD, MONEYLINE, TOTAL_POINTS,
  2206. INVALID_PARLAY_BET = The leg did not validated due to error on Parlay Bet. Check the error PlaceParlayBet response for error details,
  2207. LINE_CHANGED = Bet is submitted on a line that has changed,
  2208. LINE_DOES_NOT_BELONG_TO_EVENT = LineId does not match the EventId specified in the request,
  2209. LISTED_PITCHERS_SELECTION_ERROR = If bet was submitted with pitcher1MustStart and/or pitcher2MustStart parameters with values that are not allowed,
  2210. ODDS_NO_LONGER_OFFERED_FOR_PARLAY_1 = Due to line change odds are not offered for parlaying,
  2211. ODDS_NO_LONGER_OFFERED_FOR_PARLAY_2 = Due to line change odds are not offered for parlaying,
  2212. ODDS_NO_LONGER_OFFERED_FOR_PARLAY_3 = Due to line change odds are not offered for parlaying,
  2213. OFFLINE_EVENT = Bet is submitted on an event that is offline or with incorrect lineId,
  2214. PAST_CUTOFFTIME = Bet is submitted on a game after the betting cutoff time,
  2215. SYSTEM_ERROR_1 = Unexpected error,
  2216. SYSTEM_ERROR_2 = Unexpected error,
  2217. SYSTEM_ERROR_3 = Unexpected error,
  2218. LINE_IS_NOT_AVAILABLE = Line is not available for the specified Parlay Leg,
  2219. BETTING_SUSPENDED = Due to anomalous market circumstances bets are not currently being accepted on this line. Try again with next LineId.
  2220. enum:
  2221. - CANNOT_PARLAY_LIVE_GAME
  2222. - CORRELATED
  2223. - EVENT_NO_LONGER_AVAILABLE_FOR_BETTING
  2224. - EVENT_NOT_OFFERED_FOR_PARLAY
  2225. - INVALID_EVENT
  2226. - INVALID_LEG_BET_TYPE
  2227. - INVALID_PARLAY_BET
  2228. - LINE_CHANGED
  2229. - LINE_DOES_NOT_BELONG_TO_EVENT
  2230. - LISTED_PITCHERS_SELECTION_ERROR
  2231. - ODDS_NO_LONGER_OFFERED_FOR_PARLAY_1
  2232. - ODDS_NO_LONGER_OFFERED_FOR_PARLAY_2
  2233. - ODDS_NO_LONGER_OFFERED_FOR_PARLAY_3
  2234. - OFFLINE_EVENT
  2235. - PAST_CUTOFFTIME
  2236. - SYSTEM_ERROR_1
  2237. - SYSTEM_ERROR_2
  2238. - SYSTEM_ERROR_3
  2239. - LINE_IS_NOT_AVAILABLE
  2240. - BETTING_SUSPENDED
  2241. legId:
  2242. type: string
  2243. format: uuid
  2244. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2245. description: Echo of the legId from the request.
  2246. lineId:
  2247. type: integer
  2248. format: int64
  2249. example: 419715968
  2250. description: Line identification that bet was placed on.
  2251. altLineId:
  2252. type: integer
  2253. format: int64
  2254. example: null
  2255. x-nullable: true
  2256. description: 'If bet was accepted on alternate line, the altLineId will be returned.'
  2257. price:
  2258. type: number
  2259. format: double
  2260. example: 167
  2261. description: 赔率 that the bet was placed on.
  2262. points:
  2263. type: number
  2264. format: double
  2265. example: 1
  2266. description: 分数/盘口值
  2267. correlatedLegs:
  2268. type: array
  2269. description: If errorCode is CORRELATED will contain legIds of all correlated legs.
  2270. items:
  2271. type: string
  2272. format: uuid
  2273. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2274. description: ''
  2275. ParlayBetV2:
  2276. type: object
  2277. required:
  2278. - betId
  2279. - betStatus
  2280. - betStatus2
  2281. - betType
  2282. - legs
  2283. - oddsFormat
  2284. - placedAt
  2285. - risk
  2286. - updateSequence
  2287. - wagerNumber
  2288. - win
  2289. properties:
  2290. betId:
  2291. type: integer
  2292. format: int64
  2293. example: 760404490
  2294. description: 投注标识
  2295. uniqueRequestId:
  2296. type: string
  2297. format: uuid
  2298. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2299. description: Unique Request Id
  2300. wagerNumber:
  2301. type: integer
  2302. format: int32
  2303. example: 1
  2304. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  2305. placedAt:
  2306. type: string
  2307. format: date-time
  2308. example: '2017-09-08T00:55:11Z'
  2309. description: 投注下单时间。
  2310. betStatus:
  2311. type: string
  2312. example: ACCEPTED
  2313. description: |
  2314. Bet Status.
  2315. ACCEPTED = 投注已接受。
  2316. CANCELLED = 按 Pinnacle 规则取消。
  2317. LOSE = 已结算为输。
  2318. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 REJECTED。
  2319. REFUNDED = 赛事取消或投注结算为平局时退款。
  2320. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  2321. WON = 已结算为赢。
  2322. enum:
  2323. - ACCEPTED
  2324. - CANCELLED
  2325. - LOSE
  2326. - PENDING_ACCEPTANCE
  2327. - REFUNDED
  2328. - NOT_ACCEPTED
  2329. - WON
  2330. betStatus2:
  2331. type: string
  2332. example: ACCEPTED
  2333. description: |
  2334. Bet Status.
  2335. ACCEPTED = Bet was accepted,
  2336. CANCELLED = Bet is cancelled as per Pinnacle betting rules,
  2337. LOST = The bet is settled as lose,
  2338. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 REJECTED。
  2339. REFUNDED = 赛事取消或投注结算为平局时退款。
  2340. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  2341. WON = 已结算为赢。,
  2342. PARTIAL_WON = 总派彩大于投注额。仅含亚洲让分盘的串关。
  2343. PARTIAL_LOST = 总派彩小于或等于投注额。仅含亚洲让分盘的串关。
  2344. enum:
  2345. - ACCEPTED
  2346. - CANCELLED
  2347. - LOST
  2348. - PENDING_ACCEPTANCE
  2349. - REFUNDED
  2350. - NOT_ACCEPTED
  2351. - WON
  2352. - PARTIAL_WON
  2353. - PARTIAL_LOST
  2354. betType:
  2355. type: string
  2356. default: PARLAY
  2357. example: PARLAY
  2358. win:
  2359. type: number
  2360. format: double
  2361. example: 6.82
  2362. description: 盈利金额。
  2363. risk:
  2364. type: number
  2365. format: double
  2366. example: 1
  2367. description: 风险金额。
  2368. winLoss:
  2369. type: number
  2370. format: double
  2371. example: null
  2372. x-nullable: true
  2373. description: 已结算投注的盈亏。
  2374. oddsFormat:
  2375. $ref: '#/definitions/OddsFormat'
  2376. customerCommission:
  2377. type: number
  2378. format: double
  2379. example: null
  2380. x-nullable: true
  2381. description: Client’s commission on the bet.
  2382. cancellationReason:
  2383. $ref: '#/definitions/CancellationReason'
  2384. updateSequence:
  2385. type: integer
  2386. format: int64
  2387. example: 112839436
  2388. description: 更新序列号
  2389. legs:
  2390. type: array
  2391. description: ''
  2392. items:
  2393. $ref: '#/definitions/ParlayLegV2'
  2394. price:
  2395. type: number
  2396. format: double
  2397. example: 682
  2398. description: ''
  2399. finalPrice:
  2400. type: number
  2401. format: double
  2402. example: 0
  2403. description: Only for settled parlay. Final price may differ in case leg was cancelled or half won
  2404. description: ''
  2405. ParlayBetRegradedWagerHistoryV1:
  2406. type: object
  2407. required:
  2408. - betId
  2409. - betStatus
  2410. - betStatus2
  2411. - betType
  2412. - legs
  2413. - oddsFormat
  2414. - placedAt
  2415. - risk
  2416. - updateSequence
  2417. - wagerNumber
  2418. - win
  2419. properties:
  2420. betId:
  2421. type: integer
  2422. format: int64
  2423. example: 760404490
  2424. description: 投注标识
  2425. originalBetId:
  2426. type: integer
  2427. format: int64
  2428. example: 760404432
  2429. description: Original Bet identification
  2430. uniqueRequestId:
  2431. type: string
  2432. format: uuid
  2433. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2434. description: Unique Request Id
  2435. wagerNumber:
  2436. type: integer
  2437. format: int32
  2438. example: 1
  2439. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  2440. placedAt:
  2441. type: string
  2442. format: date-time
  2443. example: '2017-09-08T00:55:11Z'
  2444. description: 投注下单时间。
  2445. betStatus:
  2446. type: string
  2447. example: ACCEPTED
  2448. description: |
  2449. Bet Status.
  2450. ACCEPTED = 投注已接受。
  2451. CANCELLED = 按 Pinnacle 规则取消。
  2452. LOSE = 已结算为输。
  2453. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 REJECTED。
  2454. REFUNDED = 赛事取消或投注结算为平局时退款。
  2455. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  2456. WON = 已结算为赢。
  2457. enum:
  2458. - ACCEPTED
  2459. - CANCELLED
  2460. - LOSE
  2461. - PENDING_ACCEPTANCE
  2462. - REFUNDED
  2463. - NOT_ACCEPTED
  2464. - WON
  2465. betStatus2:
  2466. type: string
  2467. example: ACCEPTED
  2468. description: |
  2469. Bet Status.
  2470. ACCEPTED = Bet was accepted,
  2471. CANCELLED = Bet is cancelled as per Pinnacle betting rules,
  2472. LOST = The bet is settled as lose,
  2473. PENDING_ACCEPTANCE = 仅用于滚球:在危险区或应用滚球延迟时下的单会先为此状态,否则为 ACCEPTED。可转为 ACCEPTED 或 REJECTED。
  2474. REFUNDED = 赛事取消或投注结算为平局时退款。
  2475. NOT_ACCEPTED = 未接受。仅当此前为 PENDING_ACCEPTANCE 时可能为此状态。
  2476. WON = 已结算为赢。,
  2477. PARTIAL_WON = 总派彩大于投注额。仅含亚洲让分盘的串关。
  2478. PARTIAL_LOST = 总派彩小于或等于投注额。仅含亚洲让分盘的串关。
  2479. enum:
  2480. - ACCEPTED
  2481. - CANCELLED
  2482. - LOST
  2483. - PENDING_ACCEPTANCE
  2484. - REFUNDED
  2485. - NOT_ACCEPTED
  2486. - WON
  2487. - PARTIAL_WON
  2488. - PARTIAL_LOST
  2489. betType:
  2490. type: string
  2491. default: PARLAY
  2492. example: PARLAY
  2493. win:
  2494. type: number
  2495. format: double
  2496. example: 6.82
  2497. description: 盈利金额。
  2498. risk:
  2499. type: number
  2500. format: double
  2501. example: 1
  2502. description: 风险金额。
  2503. winLoss:
  2504. type: number
  2505. format: double
  2506. example: null
  2507. x-nullable: true
  2508. description: 已结算投注的盈亏。
  2509. oddsFormat:
  2510. $ref: '#/definitions/OddsFormat'
  2511. customerCommission:
  2512. type: number
  2513. format: double
  2514. example: null
  2515. x-nullable: true
  2516. description: Client’s commission on the bet.
  2517. cancellationReason:
  2518. $ref: '#/definitions/CancellationReason'
  2519. updateSequence:
  2520. type: integer
  2521. format: int64
  2522. example: 112839436
  2523. description: 更新序列号
  2524. legs:
  2525. type: array
  2526. description: ''
  2527. items:
  2528. $ref: '#/definitions/ParlayLegRegradedWagerHistoryV1'
  2529. price:
  2530. type: number
  2531. format: double
  2532. example: 682
  2533. description: ''
  2534. finalPrice:
  2535. type: number
  2536. format: double
  2537. example: 0
  2538. description: Only for settled parlay. Final price may differ in case leg was cancelled or half won
  2539. description: ''
  2540. ParlayLegV2:
  2541. type: object
  2542. properties:
  2543. sportId:
  2544. type: integer
  2545. format: int32
  2546. example: 29
  2547. description: ''
  2548. legBetType:
  2549. type: string
  2550. example: MONEYLINE
  2551. description: 'Parlay leg type.'
  2552. enum:
  2553. - MONEYLINE
  2554. - SPREAD
  2555. - TOTAL_POINTS
  2556. - TEAM_TOTAL_POINTS
  2557. legBetStatus:
  2558. type: string
  2559. description: |
  2560. Parlay Leg status.
  2561. CANCELLED = The leg is canceled- the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2562. LOSE = The leg is a loss or a push-lose. When Push-lose happens, the half of the stake on the leg will be pushed to the next leg, and the other half will be a lose. This can happen only when the leg is placed on a quarter points handicap,
  2563. PUSH = The leg is a push - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2564. REFUNDED = The leg is refunded - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2565. WON = The leg is a won or a push-won. When Push-won happens, the half of the stake on the leg will be pushed to the next leg, and the other half is won. This can happen only when the leg is placed on a quarter points handicap
  2566. enum:
  2567. - CANCELLED
  2568. - LOSE
  2569. - PUSH
  2570. - REFUNDED
  2571. - WON
  2572. - ACCEPTED
  2573. legBetStatus2:
  2574. type: string
  2575. description: |
  2576. Parlay Leg status.
  2577. CANCELLED = The leg is canceled- the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2578. LOST = The leg is a loss or a push-lose. When Push-lose happens, the half of the stake on the leg will be pushed to the next leg, and the other half will be a lose. This can happen only when the leg is placed on a quarter points handicap,
  2579. PUSHED = The leg is a push - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2580. REFUNDED = The leg is refunded - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2581. WON = The leg is a won or a push-won. When Push-won happens, the half of the stake on the leg will be pushed to the next leg, and the other half is won. This can happen only when the leg is placed on a quarter points handicap,
  2582. HALF_WON_HALF_PUSHED = The bet is settled as half won half pushed. Only for asian handicap legs,
  2583. HALF_LOST_HALF_PUSHED = The bet is settled as half lost half pushed. Only for asian handicap legs
  2584. enum:
  2585. - CANCELLED
  2586. - LOST
  2587. - PUSHED
  2588. - REFUNDED
  2589. - WON
  2590. - ACCEPTED
  2591. - HALF_WON_HALF_PUSHED
  2592. - HALF_LOST_HALF_PUSHED
  2593. leagueId:
  2594. type: integer
  2595. format: int32
  2596. example: 1766
  2597. description: ''
  2598. eventId:
  2599. type: integer
  2600. format: int64
  2601. example: 758024079
  2602. description: ''
  2603. eventStartTime:
  2604. type: string
  2605. format: date-time
  2606. example: '2017-10-07T21:00:00Z'
  2607. description: 'Date time when the event starts'
  2608. handicap:
  2609. type: number
  2610. format: double
  2611. example: null
  2612. x-nullable: true
  2613. description: ''
  2614. price:
  2615. type: number
  2616. format: double
  2617. example: 193
  2618. description: ''
  2619. teamName:
  2620. type: string
  2621. example: Adelaide United
  2622. description: ''
  2623. side:
  2624. type: string
  2625. example: null
  2626. x-nullable: true
  2627. description: '方向类型(大/小)。'
  2628. enum:
  2629. - OVER
  2630. - UNDER
  2631. pitcher1:
  2632. type: string
  2633. example: null
  2634. x-nullable: true
  2635. description: ''
  2636. pitcher2:
  2637. type: string
  2638. example: null
  2639. x-nullable: true
  2640. description: ''
  2641. pitcher1MustStart:
  2642. type: boolean
  2643. example: false
  2644. description: ''
  2645. pitcher2MustStart:
  2646. type: boolean
  2647. example: false
  2648. description: ''
  2649. team1:
  2650. type: string
  2651. description: Wellington Phoenix
  2652. team2:
  2653. type: string
  2654. description: Adelaide United
  2655. periodNumber:
  2656. type: integer
  2657. format: int32
  2658. example: 0
  2659. description: ''
  2660. ftTeam1Score:
  2661. type: number
  2662. format: double
  2663. example: null
  2664. x-nullable: true
  2665. description: Full time team 1 score
  2666. ftTeam2Score:
  2667. type: number
  2668. format: double
  2669. example: null
  2670. x-nullable: true
  2671. description: Full time team 2 score
  2672. pTeam1Score:
  2673. type: number
  2674. format: double
  2675. example: null
  2676. x-nullable: true
  2677. description: 'End of period team 1 score. If the bet was placed on Game period (periodNumber =0) , this will be null'
  2678. pTeam2Score:
  2679. type: number
  2680. format: double
  2681. example: null
  2682. x-nullable: true
  2683. description: 'End of period team 2 score. If the bet was placed on Game period (periodNumber =0) , this will be null'
  2684. cancellationReason:
  2685. $ref: '#/definitions/CancellationReason'
  2686. resultingUnit:
  2687. type: string
  2688. description: Specifies based on what the event is being resulted, e.g. Corners, Bookings , Regular
  2689. description: ''
  2690. ParlayLegRegradedWagerHistoryV1:
  2691. type: object
  2692. properties:
  2693. sportId:
  2694. type: integer
  2695. format: int32
  2696. example: 29
  2697. description: ''
  2698. legBetType:
  2699. type: string
  2700. example: MONEYLINE
  2701. description: 'Parlay leg type.'
  2702. enum:
  2703. - MONEYLINE
  2704. - SPREAD
  2705. - TOTAL_POINTS
  2706. - TEAM_TOTAL_POINTS
  2707. legBetStatus:
  2708. type: string
  2709. description: |
  2710. Parlay Leg status.
  2711. CANCELLED = The leg is canceled- the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2712. LOSE = The leg is a loss or a push-lose. When Push-lose happens, the half of the stake on the leg will be pushed to the next leg, and the other half will be a lose. This can happen only when the leg is placed on a quarter points handicap,
  2713. PUSH = The leg is a push - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2714. REFUNDED = The leg is refunded - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2715. WON = The leg is a won or a push-won. When Push-won happens, the half of the stake on the leg will be pushed to the next leg, and the other half is won. This can happen only when the leg is placed on a quarter points handicap
  2716. enum:
  2717. - CANCELLED
  2718. - LOSE
  2719. - PUSH
  2720. - REFUNDED
  2721. - WON
  2722. - ACCEPTED
  2723. legBetStatus2:
  2724. type: string
  2725. description: |
  2726. Parlay Leg status.
  2727. CANCELLED = The leg is canceled- the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2728. LOST = The leg is a loss or a push-lose. When Push-lose happens, the half of the stake on the leg will be pushed to the next leg, and the other half will be a lose. This can happen only when the leg is placed on a quarter points handicap,
  2729. PUSHED = The leg is a push - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2730. REFUNDED = The leg is refunded - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  2731. WON = The leg is a won or a push-won. When Push-won happens, the half of the stake on the leg will be pushed to the next leg, and the other half is won. This can happen only when the leg is placed on a quarter points handicap,
  2732. HALF_WON_HALF_PUSHED = The bet is settled as half won half pushed. Only for asian handicap legs,
  2733. HALF_LOST_HALF_PUSHED = The bet is settled as half lost half pushed. Only for asian handicap legs
  2734. enum:
  2735. - CANCELLED
  2736. - LOST
  2737. - PUSHED
  2738. - REFUNDED
  2739. - WON
  2740. - ACCEPTED
  2741. - HALF_WON_HALF_PUSHED
  2742. - HALF_LOST_HALF_PUSHED
  2743. leagueId:
  2744. type: integer
  2745. format: int32
  2746. example: 1766
  2747. description: ''
  2748. leagueName:
  2749. type: string
  2750. example: Australia - A League
  2751. description: ''
  2752. eventId:
  2753. type: integer
  2754. format: int64
  2755. example: 758024079
  2756. description: ''
  2757. eventStartTime:
  2758. type: string
  2759. format: date-time
  2760. example: '2017-10-07T21:00:00Z'
  2761. description: 'Date time when the event starts'
  2762. handicap:
  2763. type: number
  2764. format: double
  2765. example: null
  2766. x-nullable: true
  2767. description: ''
  2768. price:
  2769. type: number
  2770. format: double
  2771. example: 193
  2772. description: ''
  2773. teamName:
  2774. type: string
  2775. example: Adelaide United
  2776. description: ''
  2777. side:
  2778. type: string
  2779. example: null
  2780. x-nullable: true
  2781. description: '方向类型(大/小)。'
  2782. enum:
  2783. - OVER
  2784. - UNDER
  2785. pitcher1:
  2786. type: string
  2787. example: null
  2788. x-nullable: true
  2789. description: ''
  2790. pitcher2:
  2791. type: string
  2792. example: null
  2793. x-nullable: true
  2794. description: ''
  2795. pitcher1MustStart:
  2796. type: boolean
  2797. example: false
  2798. description: ''
  2799. pitcher2MustStart:
  2800. type: boolean
  2801. example: false
  2802. description: ''
  2803. team1:
  2804. type: string
  2805. description: Wellington Phoenix
  2806. team2:
  2807. type: string
  2808. description: Adelaide United
  2809. periodNumber:
  2810. type: integer
  2811. format: int32
  2812. example: 0
  2813. description: ''
  2814. ftTeam1Score:
  2815. type: number
  2816. format: double
  2817. example: null
  2818. x-nullable: true
  2819. description: Full time team 1 score
  2820. ftTeam2Score:
  2821. type: number
  2822. format: double
  2823. example: null
  2824. x-nullable: true
  2825. description: Full time team 2 score
  2826. pTeam1Score:
  2827. type: number
  2828. format: double
  2829. example: null
  2830. x-nullable: true
  2831. description: 'End of period team 1 score. If the bet was placed on Game period (periodNumber =0) , this will be null'
  2832. pTeam2Score:
  2833. type: number
  2834. format: double
  2835. example: null
  2836. x-nullable: true
  2837. description: 'End of period team 2 score. If the bet was placed on Game period (periodNumber =0) , this will be null'
  2838. cancellationReason:
  2839. $ref: '#/definitions/CancellationReason'
  2840. resultingUnit:
  2841. type: string
  2842. description: Specifies based on what the event is being resulted, e.g. Corners, Bookings , Regular
  2843. description: ''
  2844. PlaceTeaserBetRequest:
  2845. type: object
  2846. properties:
  2847. uniqueRequestId:
  2848. type: string
  2849. format: uuid
  2850. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2851. description: Client generated GUID for uniquely identifying the bet.
  2852. teaserId:
  2853. type: integer
  2854. format: int32
  2855. description: Unique identifier. Teaser details can be retrieved from a call to Get Teaser Groups endpoint.
  2856. oddsFormat:
  2857. $ref: '#/definitions/OddsFormat'
  2858. winRiskStake:
  2859. type: string
  2860. description: 投注金额是风险金额还是盈利金额。
  2861. stake:
  2862. type: number
  2863. format: double
  2864. description: amount in client’s currency.
  2865. legs:
  2866. type: array
  2867. description: Collection of legs.
  2868. items:
  2869. $ref: '#/definitions/TeaserBetLeg'
  2870. description: ''
  2871. TeaserBetLeg:
  2872. type: object
  2873. properties:
  2874. legId:
  2875. type: string
  2876. format: int64
  2877. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2878. description: Client generated GUID for uniquely identifying the leg.
  2879. betType:
  2880. type: string
  2881. example: SPREAD
  2882. description: 'Leg bet type can be SPREAD or TOTAL_POINTS '
  2883. enum:
  2884. - SPREAD
  2885. - TOTAL_POINTS
  2886. lineId:
  2887. type: integer
  2888. format: int64
  2889. description: Unique identifier.
  2890. eventId:
  2891. type: integer
  2892. format: int64
  2893. description: Unique identifier.
  2894. team:
  2895. type: string
  2896. description: Team being bet on for a spread line.
  2897. side:
  2898. type: string
  2899. description: 'Chosen side type. This is needed only for TOTAL_POINTS bet type.'
  2900. enum:
  2901. - OVER
  2902. - UNDER
  2903. description: ''
  2904. PlaceTeaserBetResponse:
  2905. type: object
  2906. properties:
  2907. status:
  2908. type: string
  2909. description: Status of the request.
  2910. errorCode:
  2911. type: string
  2912. description: |
  2913. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  2914. ABOVE_MAX_BET_AMOUNT = Bet is above the maximum allowed,
  2915. ALL_BETTING_CLOSED = The wagering is disabled in the system (not related to a customer),
  2916. BELOW_MIN_BET_AMOUNT = Bet is below the minimum allowed,
  2917. BLOCKED_BETTING = Betting is suspended for the client,
  2918. BLOCKED_CLIENT = Customer is inactive in the system,
  2919. DOUBLE_HIT = The website submitted the same bet more than once,
  2920. DUPLICATE_CLIENT_REFERENCE_ID = The teaser unique id and/or one of the leg unique id are the same,
  2921. INCOMPLETE_CUSTOMER_BETTING_PROFILE = The customer does not exist,
  2922. INSUFFICIENT_FUNDS = The risk amount is above the customer’s available balance,
  2923. INVALID_COUNTRY = Current location is proscribed,
  2924. INVALID_CUSTOMER_PROFILE = Either the customer does not exist OR the customer business rules are not verified,
  2925. INVALID_LEGS = One or more legs are not verified,
  2926. INVALID_REQUEST = Teaser request is not valid,
  2927. ODDS_FORMAT_MISMATCH = Agent customer’s odds format differs from wager request odds format,
  2928. RESUBMIT_REQUEST = The ticket hast to be resubmitted,
  2929. TEASER_DOES_NOT_EXIST = Teaser does not exist in the system,
  2930. SAME_EVENT_ONLY_REQUIRED = Legs required to be for the same game only. Specified in the Teaser Specifications,
  2931. SYSTEM_ERROR_1 = System error,
  2932. SYSTEM_ERROR_2 = System error,
  2933. SYSTEM_ERROR_3 = System error,
  2934. TOO_FEW_LEGS = Legs count is below Min Picks specified in the Teaser Specifications,
  2935. TOO_MANY_LEGS = Legs count is above Max Picks specified in the Teaser Specifications,
  2936. DUPLICATE_UNIQUE_REQUEST_ID = Request with the same uniqueRequestId was already processed. Please set the new value if you still want the request to be processed,
  2937. RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED = Client has reached his total loss limit,
  2938. RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED = Client has reached his total risk limit
  2939. enum:
  2940. - ABOVE_MAX_BET_AMOUNT
  2941. - ALL_BETTING_CLOSED
  2942. - BELOW_MIN_BET_AMOUNT
  2943. - BLOCKED_BETTING
  2944. - BLOCKED_CLIENT
  2945. - DOUBLE_HIT
  2946. - DUPLICATE_CLIENT_REFERENCE_ID
  2947. - INCOMPLETE_CUSTOMER_BETTING_PROFILE
  2948. - INSUFFICIENT_FUNDS
  2949. - INVALID_COUNTRY
  2950. - INVALID_CUSTOMER_PROFILE
  2951. - INVALID_LEGS
  2952. - INVALID_REQUEST
  2953. - ODDS_FORMAT_MISMATCH
  2954. - RESUBMIT_REQUEST
  2955. - TEASER_DOES_NOT_EXIST
  2956. - SAME_EVENT_ONLY_REQUIRED
  2957. - SYSTEM_ERROR_1
  2958. - SYSTEM_ERROR_2
  2959. - SYSTEM_ERROR_3
  2960. - TOO_FEW_LEGS
  2961. - TOO_MANY_LEGS
  2962. - DUPLICATE_UNIQUE_REQUEST_ID
  2963. - RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
  2964. - RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
  2965. betId:
  2966. type: integer
  2967. format: int64
  2968. description: Id of a newly created bet.
  2969. uniqueRequestId:
  2970. type: string
  2971. format: uuid
  2972. example: 10924E23-A2FE-4317-BFFD-80504675F554
  2973. description: Unique identifier provided in the request.
  2974. price:
  2975. type: number
  2976. format: double
  2977. description: 赔率 for the bet.
  2978. riskAmount:
  2979. type: number
  2980. format: double
  2981. description: Amount wagered.
  2982. winAmount:
  2983. type: number
  2984. format: double
  2985. description: Potential winnings.
  2986. winRiskStake:
  2987. type: string
  2988. description: 投注金额是风险金额还是盈利金额。
  2989. invalidLegs:
  2990. type: array
  2991. description: 'A collection of invalid legs, if any.'
  2992. items:
  2993. $ref: '#/definitions/PlaceTeaserBetLegResponse'
  2994. validLegs:
  2995. type: array
  2996. description: 'A collection of valid legs, if any.'
  2997. items:
  2998. $ref: '#/definitions/PlaceTeaserBetLegResponse'
  2999. teaserBet:
  3000. $ref: '#/definitions/TeaserBet'
  3001. description: 'Present if bet was accepted'
  3002. PlaceTeaserBetResponseV4:
  3003. type: object
  3004. properties:
  3005. status:
  3006. type: string
  3007. description: Status of the request.
  3008. errorCode:
  3009. type: string
  3010. description: |
  3011. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  3012. ABOVE_MAX_BET_AMOUNT = Bet is above the maximum allowed,
  3013. ALL_BETTING_CLOSED = The wagering is disabled in the system (not related to a customer),
  3014. BELOW_MIN_BET_AMOUNT = Bet is below the minimum allowed,
  3015. BLOCKED_BETTING = Betting is suspended for the client,
  3016. BLOCKED_CLIENT = Customer is inactive in the system,
  3017. DOUBLE_HIT = The website submitted the same bet more than once,
  3018. DUPLICATE_CLIENT_REFERENCE_ID = The teaser unique id and/or one of the leg unique id are the same,
  3019. INCOMPLETE_CUSTOMER_BETTING_PROFILE = The customer does not exist,
  3020. INSUFFICIENT_FUNDS = The risk amount is above the customer’s available balance,
  3021. INVALID_COUNTRY = Current location is proscribed,
  3022. INVALID_CUSTOMER_PROFILE = Either the customer does not exist OR the customer business rules are not verified,
  3023. INVALID_LEGS = One or more legs are not verified,
  3024. INVALID_REQUEST = Teaser request is not valid,
  3025. ODDS_FORMAT_MISMATCH = Agent customer’s odds format differs from wager request odds format,
  3026. RESUBMIT_REQUEST = The ticket hast to be resubmitted,
  3027. TEASER_DOES_NOT_EXIST = Teaser does not exist in the system,
  3028. SAME_EVENT_ONLY_REQUIRED = Legs required to be for the same game only. Specified in the Teaser Specifications,
  3029. SYSTEM_ERROR_1 = System error,
  3030. SYSTEM_ERROR_2 = System error,
  3031. SYSTEM_ERROR_3 = System error,
  3032. TOO_FEW_LEGS = Legs count is below Min Picks specified in the Teaser Specifications,
  3033. TOO_MANY_LEGS = Legs count is above Max Picks specified in the Teaser Specifications,
  3034. DUPLICATE_UNIQUE_REQUEST_ID = Request with the same uniqueRequestId was already processed. Please set the new value if you still want the request to be processed,
  3035. RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED = Client has reached his total loss limit,
  3036. RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED = Client has reached his total risk limit
  3037. enum:
  3038. - ABOVE_MAX_BET_AMOUNT
  3039. - ALL_BETTING_CLOSED
  3040. - BELOW_MIN_BET_AMOUNT
  3041. - BLOCKED_BETTING
  3042. - BLOCKED_CLIENT
  3043. - DOUBLE_HIT
  3044. - DUPLICATE_CLIENT_REFERENCE_ID
  3045. - INCOMPLETE_CUSTOMER_BETTING_PROFILE
  3046. - INSUFFICIENT_FUNDS
  3047. - INVALID_COUNTRY
  3048. - INVALID_CUSTOMER_PROFILE
  3049. - INVALID_LEGS
  3050. - INVALID_REQUEST
  3051. - ODDS_FORMAT_MISMATCH
  3052. - RESUBMIT_REQUEST
  3053. - TEASER_DOES_NOT_EXIST
  3054. - SAME_EVENT_ONLY_REQUIRED
  3055. - SYSTEM_ERROR_1
  3056. - SYSTEM_ERROR_2
  3057. - SYSTEM_ERROR_3
  3058. - TOO_FEW_LEGS
  3059. - TOO_MANY_LEGS
  3060. - DUPLICATE_UNIQUE_REQUEST_ID
  3061. - RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
  3062. - RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
  3063. betId:
  3064. type: integer
  3065. format: int64
  3066. description: Id of a newly created bet.
  3067. uniqueRequestId:
  3068. type: string
  3069. format: uuid
  3070. example: 10924E23-A2FE-4317-BFFD-80504675F554
  3071. description: Unique identifier provided in the request.
  3072. price:
  3073. type: number
  3074. format: double
  3075. description: 赔率 for the bet.
  3076. risk:
  3077. type: number
  3078. format: double
  3079. description: Amount wagered.
  3080. win:
  3081. type: number
  3082. format: double
  3083. description: Potential winnings.
  3084. winRiskStake:
  3085. type: string
  3086. description: 投注金额是风险金额还是盈利金额。
  3087. invalidLegs:
  3088. type: array
  3089. description: 'A collection of invalid legs, if any.'
  3090. items:
  3091. $ref: '#/definitions/PlaceTeaserBetLegResponse'
  3092. validLegs:
  3093. type: array
  3094. description: 'A collection of valid legs, if any.'
  3095. items:
  3096. $ref: '#/definitions/PlaceTeaserBetLegResponse'
  3097. PlaceTeaserBetLegResponse:
  3098. type: object
  3099. properties:
  3100. status:
  3101. type: string
  3102. description: Status of the request.
  3103. errorCode:
  3104. type: string
  3105. description: |
  3106. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  3107. CANNOT_TEASER_LIVE_GAME = Teaser is not allowed on a live game,
  3108. CHECK_TEASER_ERROR = The teaser is invalid, check the teaser error for more details,
  3109. INVALID_EVENT = The game is not found in the system,
  3110. INVALID_LEG_BET = The wager is not verified,
  3111. INVALID_LEG_BET_TYPE = Wager type is not “teasable”, can be either Spread or Total,
  3112. LINE_CHANGED = Wager is placed on a line that has changed,
  3113. LINE_DOES_NOT_BELONG_TO_EVENT = There was no game found for the wager,
  3114. OFFLINE_EVENT = Either the game is offline OR there was no game found for the wager,
  3115. PAST_CUTOFFTIME = Wager is placed on a game after the cutoff time,
  3116. POINTS_ARE_NOT_ADJUSTED = The teaser points were not adjusted,
  3117. SYSTEM_ERROR_1 = System error,
  3118. SYSTEM_ERROR_2 = System error,
  3119. WAGER_DATA_MISSING = Wager is denied due to insufficient information available for validation,
  3120. LINE_IS_NOT_AVAILABLE = Line is not available for the specified Teaser Leg,
  3121. BETTING_SUSPENDED = Due to anomalous market circumstances bets are not currently being accepted on this line. Try again with next LineId.
  3122. enum:
  3123. - CANNOT_TEASER_LIVE_GAME
  3124. - CHECK_TEASER_ERROR
  3125. - INVALID_EVENT
  3126. - INVALID_LEG_BET
  3127. - INVALID_LEG_BET_TYPE
  3128. - LINE_CHANGED
  3129. - LINE_DOES_NOT_BELONG_TO_EVENT
  3130. - OFFLINE_EVENT
  3131. - PAST_CUTOFFTIME
  3132. - POINTS_ARE_NOT_ADJUSTED
  3133. - SYSTEM_ERROR_1
  3134. - SYSTEM_ERROR_2
  3135. - WAGER_DATA_MISSING
  3136. - LINE_IS_NOT_AVAILABLE
  3137. - BETTING_SUSPENDED
  3138. legId:
  3139. type: string
  3140. format: uuid
  3141. example: A9EB2EB1-13A5-4600-9F1B-4859379CDEC4
  3142. description: Echo of the legId from the request.
  3143. lineId:
  3144. type: integer
  3145. format: int64
  3146. description: Line identification that bet was placed on.
  3147. points:
  3148. type: number
  3149. format: double
  3150. description: Number of points.
  3151. description: ''
  3152. 'MultiBetRequest[SpecialBetRequest]':
  3153. type: object
  3154. properties:
  3155. bets:
  3156. type: array
  3157. description: The individual bets.
  3158. items:
  3159. $ref: '#/definitions/SpecialBetRequest'
  3160. description: ''
  3161. SpecialBetRequest:
  3162. type: object
  3163. properties:
  3164. uniqueRequestId:
  3165. type: string
  3166. format: uuid
  3167. example: 10924E23-A2FE-4317-BFFD-80504675F554
  3168. description: This unique id of the place bet requests. This is to support idempotent requests.
  3169. acceptBetterLine:
  3170. type: boolean
  3171. example: true
  3172. description: 当盘口变化对客户有利时是否接受该投注。
  3173. oddsFormat:
  3174. $ref: '#/definitions/OddsFormat'
  3175. stake:
  3176. type: number
  3177. format: double
  3178. example: 10.5
  3179. description: amount in client’s currency.
  3180. winRiskStake:
  3181. type: string
  3182. example: RISK
  3183. description: 投注金额是风险金额还是盈利金额。
  3184. enum:
  3185. - WIN
  3186. - RISK
  3187. lineId:
  3188. type: integer
  3189. format: int64
  3190. example: 51024304
  3191. description: 盘口标识。
  3192. specialId:
  3193. type: integer
  3194. format: int64
  3195. example: 726394409
  3196. description: Special identification.
  3197. contestantId:
  3198. type: integer
  3199. format: int64
  3200. example: 726394411
  3201. description: Contestant identification.
  3202. description: ''
  3203. 'MultiBetResponse[SpecialBetResponse]':
  3204. type: object
  3205. properties:
  3206. bets:
  3207. type: array
  3208. description: The individual bets.
  3209. items:
  3210. $ref: '#/definitions/SpecialBetResponse'
  3211. description: ''
  3212. 'MultiBetResponse[SpecialBetResponseV4]':
  3213. type: object
  3214. properties:
  3215. bets:
  3216. type: array
  3217. description: The individual bets.
  3218. items:
  3219. $ref: '#/definitions/SpecialBetResponseV4'
  3220. description: ''
  3221. SpecialBetResponse:
  3222. type: object
  3223. properties:
  3224. status:
  3225. type: string
  3226. example: ACCEPTED
  3227. description: Status of the request.
  3228. enum:
  3229. - ACCEPTED
  3230. - PROCESSED_WITH_ERROR
  3231. errorCode:
  3232. type: string
  3233. example: null
  3234. x-nullable: true
  3235. description: |
  3236. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  3237. ALL_BETTING_CLOSED = Betting is not allowed at this moment. This may happen during system maintenance.
  3238. ABOVE_MAX_BET_AMOUNT = Stake is above allowed maximum amount,
  3239. BELOW_MIN_BET_AMOUNT = Stake is below allowed minimum amount,
  3240. BLOCKED_BETTING = Betting is suspended for the client,
  3241. BLOCKED_CLIENT = Client is no longer active,
  3242. CONTEST_NOT_FOUND = Incorrect contest id provided or contest is no longer available,
  3243. DUPLICATE_UNIQUE_REQUEST_ID = UniqueRequestId must be unique for each bet,
  3244. INCOMPLETE_CUSTOMER_BETTING_PROFILE = Customer profile could not be loaded,
  3245. INSUFFICIENT_FUNDS = Bet is submitted by a client with insufficient funds,
  3246. INVALID_COUNTRY = Client country is not allowed for betting,
  3247. INVALID_REQUEST = Special bet request is not valid,
  3248. LINE_CHANGED = Bet is submitted on a line that has changed,
  3249. PAST_CUTOFFTIME = Bet is submitted on a game after the betting cutoff time,
  3250. RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED = Self-imposed loss limit exceeded,
  3251. RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED = Self-imposed risk limit exceeded,
  3252. RESUBMIT_REQUEST = The ticket hast to be resubmitted,
  3253. SYSTEM_ERROR_1 = Unexpected error,
  3254. SYSTEM_ERROR_2 = Unexpected error,
  3255. UNIQUE_REQUEST_ID_REQUIRED = UniqueRequestId is missing,
  3256. BETTING_SUSPENDED = Due to anomalous market circumstances bets are not currently being accepted on this line. Try again with next LineId,
  3257. INVALID_CUSTOMER_PROFILE
  3258. enum:
  3259. - ALL_BETTING_CLOSED
  3260. - ABOVE_MAX_BET_AMOUNT
  3261. - BELOW_MIN_BET_AMOUNT
  3262. - BLOCKED_BETTING
  3263. - BLOCKED_CLIENT
  3264. - CONTEST_NOT_FOUND
  3265. - DUPLICATE_UNIQUE_REQUEST_ID
  3266. - INCOMPLETE_CUSTOMER_BETTING_PROFILE
  3267. - INSUFFICIENT_FUNDS
  3268. - INVALID_COUNTRY
  3269. - INVALID_REQUEST
  3270. - LINE_CHANGED
  3271. - PAST_CUTOFFTIME
  3272. - RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
  3273. - RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
  3274. - RESUBMIT_REQUEST
  3275. - SYSTEM_ERROR_1
  3276. - SYSTEM_ERROR_2
  3277. - UNIQUE_REQUEST_ID_REQUIRED
  3278. - BETTING_SUSPENDED
  3279. - INVALID_CUSTOMER_PROFILE
  3280. betId:
  3281. type: integer
  3282. format: int64
  3283. example: 760745142
  3284. description: Id of a newly created bet.
  3285. uniqueRequestId:
  3286. type: string
  3287. format: uuid
  3288. example: 10924E23-A2FE-4317-BFFD-80504675F554
  3289. description: Unique identifier provided in the request.
  3290. betterLineWasAccepted:
  3291. type: boolean
  3292. example: false
  3293. 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.
  3294. specialBet:
  3295. $ref: '#/definitions/SpecialBetV2'
  3296. description: ''
  3297. SpecialBetResponseV4:
  3298. type: object
  3299. properties:
  3300. status:
  3301. type: string
  3302. example: ACCEPTED
  3303. description: Status of the request.
  3304. enum:
  3305. - ACCEPTED
  3306. - PROCESSED_WITH_ERROR
  3307. errorCode:
  3308. type: string
  3309. example: null
  3310. x-nullable: true
  3311. description: |
  3312. When Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.
  3313. ALL_BETTING_CLOSED = Betting is not allowed at this moment. This may happen during system maintenance.
  3314. ABOVE_MAX_BET_AMOUNT = Stake is above allowed maximum amount,
  3315. BELOW_MIN_BET_AMOUNT = Stake is below allowed minimum amount,
  3316. BLOCKED_BETTING = Betting is suspended for the client,
  3317. BLOCKED_CLIENT = Client is no longer active,
  3318. CONTEST_NOT_FOUND = Incorrect contest id provided or contest is no longer available,
  3319. DUPLICATE_UNIQUE_REQUEST_ID = UniqueRequestId must be unique for each bet,
  3320. INCOMPLETE_CUSTOMER_BETTING_PROFILE = Customer profile could not be loaded,
  3321. INSUFFICIENT_FUNDS = Bet is submitted by a client with insufficient funds,
  3322. INVALID_COUNTRY = Client country is not allowed for betting,
  3323. INVALID_REQUEST = Special bet request is not valid,
  3324. LINE_CHANGED = Bet is submitted on a line that has changed,
  3325. PAST_CUTOFFTIME = Bet is submitted on a game after the betting cutoff time,
  3326. RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED = Self-imposed loss limit exceeded,
  3327. RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED = Self-imposed risk limit exceeded,
  3328. RESUBMIT_REQUEST = The ticket hast to be resubmitted,
  3329. SYSTEM_ERROR_1 = Unexpected error,
  3330. SYSTEM_ERROR_2 = Unexpected error,
  3331. UNIQUE_REQUEST_ID_REQUIRED = UniqueRequestId is missing,
  3332. BETTING_SUSPENDED = Due to anomalous market circumstances bets are not currently being accepted on this line. Try again with next LineId,
  3333. INVALID_CUSTOMER_PROFILE
  3334. enum:
  3335. - ALL_BETTING_CLOSED
  3336. - ABOVE_MAX_BET_AMOUNT
  3337. - BELOW_MIN_BET_AMOUNT
  3338. - BLOCKED_BETTING
  3339. - BLOCKED_CLIENT
  3340. - CONTEST_NOT_FOUND
  3341. - DUPLICATE_UNIQUE_REQUEST_ID
  3342. - INCOMPLETE_CUSTOMER_BETTING_PROFILE
  3343. - INSUFFICIENT_FUNDS
  3344. - INVALID_COUNTRY
  3345. - INVALID_REQUEST
  3346. - LINE_CHANGED
  3347. - PAST_CUTOFFTIME
  3348. - RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED
  3349. - RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED
  3350. - RESUBMIT_REQUEST
  3351. - SYSTEM_ERROR_1
  3352. - SYSTEM_ERROR_2
  3353. - UNIQUE_REQUEST_ID_REQUIRED
  3354. - BETTING_SUSPENDED
  3355. - INVALID_CUSTOMER_PROFILE
  3356. betId:
  3357. type: integer
  3358. format: int64
  3359. example: 760745142
  3360. description: Id of a newly created bet.
  3361. uniqueRequestId:
  3362. type: string
  3363. format: uuid
  3364. example: 10924E23-A2FE-4317-BFFD-80504675F554
  3365. description: Unique identifier provided in the request.
  3366. betterLineWasAccepted:
  3367. type: boolean
  3368. example: false
  3369. 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.
  3370. win:
  3371. type: number
  3372. format: double
  3373. example: 1
  3374. description: 盈利金额。
  3375. risk:
  3376. type: number
  3377. format: double
  3378. example: 1.51
  3379. description: 风险金额。
  3380. price:
  3381. type: number
  3382. format: double
  3383. example: 1.51
  3384. description: 赔率 amount.
  3385. description: ''
  3386. SpecialBet:
  3387. type: object
  3388. required:
  3389. - betId
  3390. - betStatus
  3391. - betType
  3392. - contestantId
  3393. - contestantName
  3394. - leagueId
  3395. - oddsFormat
  3396. - placedAt
  3397. - price
  3398. - risk
  3399. - specialId
  3400. - specialName
  3401. - sportId
  3402. - updateSequence
  3403. - wagerNumber
  3404. - win
  3405. properties:
  3406. betId:
  3407. type: integer
  3408. format: int64
  3409. example: 760748770
  3410. description: 投注标识
  3411. uniqueRequestId:
  3412. type: string
  3413. format: uuid
  3414. example: 10924E23-A2FE-4317-BFFD-80504675F554
  3415. description: Unique Request Id
  3416. wagerNumber:
  3417. type: integer
  3418. format: int32
  3419. example: 1
  3420. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  3421. placedAt:
  3422. type: string
  3423. format: date-time
  3424. example: '2017-09-09T01:49:43Z'
  3425. description: 投注下单时间。
  3426. settledAt:
  3427. type: string
  3428. format: date-time
  3429. example: '2017-09-05T01:32:59Z'
  3430. description: Date time when the bet was settled.
  3431. betStatus:
  3432. type: string
  3433. example: ACCEPTED
  3434. description: |
  3435. Bet Status.
  3436. ACCEPTED = 投注已接受。
  3437. CANCELLED = 按 Pinnacle 规则取消。
  3438. LOSE = 已结算为输。
  3439. REFUNDED = 赛事取消或投注结算为平局时退款。
  3440. WON = 已结算为赢。
  3441. enum:
  3442. - ACCEPTED
  3443. - CANCELLED
  3444. - LOSE
  3445. - REFUNDED
  3446. - WON
  3447. betType:
  3448. type: string
  3449. default: SPECIAL
  3450. example: SPECIAL
  3451. win:
  3452. type: number
  3453. format: double
  3454. example: 1
  3455. description: 盈利金额。
  3456. risk:
  3457. type: number
  3458. format: double
  3459. example: 1.51
  3460. description: 风险金额。
  3461. winLoss:
  3462. type: number
  3463. format: double
  3464. example: null
  3465. x-nullable: true
  3466. description: 已结算投注的盈亏。
  3467. oddsFormat:
  3468. $ref: '#/definitions/OddsFormat'
  3469. customerCommission:
  3470. type: number
  3471. format: double
  3472. example: null
  3473. x-nullable: true
  3474. description: Client’s commission on the bet.
  3475. cancellationReason:
  3476. $ref: '#/definitions/CancellationReason'
  3477. updateSequence:
  3478. type: integer
  3479. format: int64
  3480. example: 113214135
  3481. description: 更新序列号. It gets updated when the bet status change.
  3482. specialId:
  3483. type: integer
  3484. format: int64
  3485. example: 726397620
  3486. description: ''
  3487. specialName:
  3488. type: string
  3489. example: Denver Broncos Regular Season Wins?
  3490. description: ''
  3491. contestantId:
  3492. type: integer
  3493. format: int64
  3494. example: 726397622
  3495. description: ''
  3496. contestantName:
  3497. type: string
  3498. example: Under
  3499. description: ''
  3500. price:
  3501. type: number
  3502. format: double
  3503. example: -151
  3504. description: ''
  3505. handicap:
  3506. type: number
  3507. format: double
  3508. example: 8.5
  3509. description: ''
  3510. units:
  3511. type: string
  3512. example: Regular Season Wins
  3513. description: ''
  3514. sportId:
  3515. type: integer
  3516. format: int32
  3517. example: 15
  3518. description: ''
  3519. leagueId:
  3520. type: integer
  3521. format: int32
  3522. example: 889
  3523. description: ''
  3524. eventId:
  3525. type: integer
  3526. format: int64
  3527. example: null
  3528. x-nullable: true
  3529. description: Populated if bet was placed on a special linked to the event.
  3530. periodNumber:
  3531. type: integer
  3532. format: int32
  3533. example: null
  3534. x-nullable: true
  3535. description: Populated if bet was placed on a special linked to the event.
  3536. team1:
  3537. type: string
  3538. example: null
  3539. x-nullable: true
  3540. description: Populated if bet was placed on a special linked to the event.
  3541. team2:
  3542. type: string
  3543. example: null
  3544. x-nullable: true
  3545. description: Populated if bet was placed on a special linked to the event.
  3546. description: ''
  3547. SpecialBetV2:
  3548. type: object
  3549. required:
  3550. - betId
  3551. - betStatus
  3552. - betType
  3553. - contestantId
  3554. - contestantName
  3555. - leagueId
  3556. - oddsFormat
  3557. - placedAt
  3558. - price
  3559. - risk
  3560. - specialId
  3561. - specialName
  3562. - sportId
  3563. - updateSequence
  3564. - wagerNumber
  3565. - win
  3566. properties:
  3567. betId:
  3568. type: integer
  3569. format: int64
  3570. example: 760748770
  3571. description: 投注标识
  3572. uniqueRequestId:
  3573. type: string
  3574. format: uuid
  3575. example: 10924E23-A2FE-4317-BFFD-80504675F554
  3576. description: Unique Request Id
  3577. wagerNumber:
  3578. type: integer
  3579. format: int32
  3580. example: 1
  3581. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  3582. placedAt:
  3583. type: string
  3584. format: date-time
  3585. example: '2017-09-09T01:49:43Z'
  3586. description: 投注下单时间。
  3587. betStatus:
  3588. type: string
  3589. example: ACCEPTED
  3590. description: |
  3591. Bet Status.
  3592. ACCEPTED = 投注已接受。
  3593. CANCELLED = 按 Pinnacle 规则取消。
  3594. LOSE = 已结算为输。
  3595. REFUNDED = 赛事取消或投注结算为平局时退款。
  3596. WON = 已结算为赢。
  3597. enum:
  3598. - ACCEPTED
  3599. - CANCELLED
  3600. - LOSE
  3601. - REFUNDED
  3602. - WON
  3603. betType:
  3604. type: string
  3605. default: SPECIAL
  3606. example: SPECIAL
  3607. win:
  3608. type: number
  3609. format: double
  3610. example: 1
  3611. description: 盈利金额。
  3612. risk:
  3613. type: number
  3614. format: double
  3615. example: 1.51
  3616. description: 风险金额。
  3617. winLoss:
  3618. type: number
  3619. format: double
  3620. example: null
  3621. x-nullable: true
  3622. description: 已结算投注的盈亏。
  3623. oddsFormat:
  3624. $ref: '#/definitions/OddsFormat'
  3625. customerCommission:
  3626. type: number
  3627. format: double
  3628. example: null
  3629. x-nullable: true
  3630. description: Client’s commission on the bet.
  3631. cancellationReason:
  3632. $ref: '#/definitions/CancellationReason'
  3633. updateSequence:
  3634. type: integer
  3635. format: int64
  3636. example: 113214135
  3637. description: 更新序列号. It gets updated when the bet status change.
  3638. specialId:
  3639. type: integer
  3640. format: int64
  3641. example: 726397620
  3642. description: ''
  3643. specialName:
  3644. type: string
  3645. example: Denver Broncos Regular Season Wins?
  3646. description: ''
  3647. contestantId:
  3648. type: integer
  3649. format: int64
  3650. example: 726397622
  3651. description: ''
  3652. contestantName:
  3653. type: string
  3654. example: Under
  3655. description: ''
  3656. price:
  3657. type: number
  3658. format: double
  3659. example: -151
  3660. description: ''
  3661. handicap:
  3662. type: number
  3663. format: double
  3664. example: 8.5
  3665. description: ''
  3666. units:
  3667. type: string
  3668. example: Regular Season Wins
  3669. description: ''
  3670. sportId:
  3671. type: integer
  3672. format: int32
  3673. example: 15
  3674. description: ''
  3675. leagueId:
  3676. type: integer
  3677. format: int32
  3678. example: 889
  3679. description: ''
  3680. eventId:
  3681. type: integer
  3682. format: int64
  3683. example: null
  3684. x-nullable: true
  3685. description: Populated if bet was placed on a special linked to the event.
  3686. periodNumber:
  3687. type: integer
  3688. format: int32
  3689. example: null
  3690. x-nullable: true
  3691. description: Populated if bet was placed on a special linked to the event.
  3692. team1:
  3693. type: string
  3694. example: null
  3695. x-nullable: true
  3696. description: Populated if bet was placed on a special linked to the event.
  3697. team2:
  3698. type: string
  3699. example: null
  3700. x-nullable: true
  3701. description: Populated if bet was placed on a special linked to the event.
  3702. eventStartTime:
  3703. type: string
  3704. format: date-time
  3705. description: Date time when the event starts.
  3706. resultingUnit:
  3707. type: string
  3708. description: Specifies based on what the event is being resulted, e.g. Corners, Bookings , Regular.
  3709. description: ''
  3710. SpecialBetV3:
  3711. type: object
  3712. required:
  3713. - betId
  3714. - betStatus
  3715. - betType
  3716. - contestantId
  3717. - contestantName
  3718. - leagueId
  3719. - oddsFormat
  3720. - placedAt
  3721. - price
  3722. - risk
  3723. - specialId
  3724. - specialName
  3725. - sportId
  3726. - updateSequence
  3727. - wagerNumber
  3728. - win
  3729. properties:
  3730. betId:
  3731. type: integer
  3732. format: int64
  3733. example: 760748770
  3734. description: 投注标识
  3735. uniqueRequestId:
  3736. type: string
  3737. format: uuid
  3738. example: 10924E23-A2FE-4317-BFFD-80504675F554
  3739. description: Unique Request Id
  3740. wagerNumber:
  3741. type: integer
  3742. format: int32
  3743. example: 1
  3744. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  3745. placedAt:
  3746. type: string
  3747. format: date-time
  3748. example: '2017-09-09T01:49:43Z'
  3749. description: 投注下单时间。
  3750. betStatus:
  3751. type: string
  3752. example: ACCEPTED
  3753. description: |
  3754. Bet Status.
  3755. ACCEPTED = 投注已接受。
  3756. CANCELLED = 按 Pinnacle 规则取消。
  3757. LOSE = 已结算为输。
  3758. REFUNDED = 赛事取消或投注结算为平局时退款。
  3759. WON = 已结算为赢。
  3760. enum:
  3761. - ACCEPTED
  3762. - CANCELLED
  3763. - LOSE
  3764. - REFUNDED
  3765. - WON
  3766. betType:
  3767. type: string
  3768. default: SPECIAL
  3769. example: SPECIAL
  3770. win:
  3771. type: number
  3772. format: double
  3773. example: 1
  3774. description: 盈利金额。
  3775. risk:
  3776. type: number
  3777. format: double
  3778. example: 1.51
  3779. description: 风险金额。
  3780. winLoss:
  3781. type: number
  3782. format: double
  3783. example: null
  3784. x-nullable: true
  3785. description: 已结算投注的盈亏。
  3786. oddsFormat:
  3787. $ref: '#/definitions/OddsFormat'
  3788. customerCommission:
  3789. type: number
  3790. format: double
  3791. example: null
  3792. x-nullable: true
  3793. description: Client’s commission on the bet.
  3794. cancellationReason:
  3795. $ref: '#/definitions/CancellationReason'
  3796. updateSequence:
  3797. type: integer
  3798. format: int64
  3799. example: 113214135
  3800. description: 更新序列号. It gets updated when the bet status change.
  3801. specialId:
  3802. type: integer
  3803. format: int64
  3804. example: 726397620
  3805. description: ''
  3806. specialName:
  3807. type: string
  3808. example: Denver Broncos Regular Season Wins?
  3809. description: ''
  3810. contestantId:
  3811. type: integer
  3812. format: int64
  3813. example: 726397622
  3814. description: ''
  3815. contestantName:
  3816. type: string
  3817. example: Under
  3818. description: ''
  3819. price:
  3820. type: number
  3821. format: double
  3822. example: -151
  3823. description: ''
  3824. handicap:
  3825. type: number
  3826. format: double
  3827. example: 8.5
  3828. description: ''
  3829. units:
  3830. type: string
  3831. example: Regular Season Wins
  3832. description: ''
  3833. sportId:
  3834. type: integer
  3835. format: int32
  3836. example: 15
  3837. description: ''
  3838. leagueId:
  3839. type: integer
  3840. format: int32
  3841. example: 889
  3842. description: ''
  3843. eventId:
  3844. type: integer
  3845. format: int64
  3846. example: null
  3847. x-nullable: true
  3848. description: Populated if bet was placed on a special linked to the event.
  3849. periodNumber:
  3850. type: integer
  3851. format: int32
  3852. example: null
  3853. x-nullable: true
  3854. description: Populated if bet was placed on a special linked to the event.
  3855. team1:
  3856. type: string
  3857. example: null
  3858. x-nullable: true
  3859. description: Populated if bet was placed on a special linked to the event.
  3860. team2:
  3861. type: string
  3862. example: null
  3863. x-nullable: true
  3864. description: Populated if bet was placed on a special linked to the event.
  3865. eventStartTime:
  3866. type: string
  3867. format: date-time
  3868. example: 2017-10-05T01:32:59Z
  3869. x-nullable: false
  3870. description: Date time when the event starts.
  3871. resultingUnit:
  3872. type: string
  3873. x-nullable: false
  3874. description: Specifies based on what the event is being resulted, e.g. Corners, Bookings , Regular.
  3875. description: ''
  3876. SpecialBetRegradedWagerHistoryV1:
  3877. type: object
  3878. required:
  3879. - betId
  3880. - betStatus
  3881. - betType
  3882. - contestantId
  3883. - contestantName
  3884. - leagueId
  3885. - oddsFormat
  3886. - placedAt
  3887. - price
  3888. - risk
  3889. - specialId
  3890. - specialName
  3891. - sportId
  3892. - updateSequence
  3893. - wagerNumber
  3894. - win
  3895. properties:
  3896. betId:
  3897. type: integer
  3898. format: int64
  3899. example: 760748770
  3900. description: 投注标识
  3901. originalBetId:
  3902. type: integer
  3903. format: int64
  3904. example: 760748743
  3905. description: Original bet identification
  3906. uniqueRequestId:
  3907. type: string
  3908. format: uuid
  3909. example: 10924E23-A2FE-4317-BFFD-80504675F554
  3910. description: Unique Request Id
  3911. wagerNumber:
  3912. type: integer
  3913. format: int32
  3914. example: 1
  3915. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  3916. placedAt:
  3917. type: string
  3918. format: date-time
  3919. example: '2017-09-09T01:49:43Z'
  3920. description: 投注下单时间。
  3921. betStatus:
  3922. type: string
  3923. example: ACCEPTED
  3924. description: |
  3925. Bet Status.
  3926. ACCEPTED = 投注已接受。
  3927. CANCELLED = 按 Pinnacle 规则取消。
  3928. LOSE = 已结算为输。
  3929. REFUNDED = 赛事取消或投注结算为平局时退款。
  3930. WON = 已结算为赢。
  3931. enum:
  3932. - ACCEPTED
  3933. - CANCELLED
  3934. - LOSE
  3935. - REFUNDED
  3936. - WON
  3937. betType:
  3938. type: string
  3939. default: SPECIAL
  3940. example: SPECIAL
  3941. win:
  3942. type: number
  3943. format: double
  3944. example: 1
  3945. description: 盈利金额。
  3946. risk:
  3947. type: number
  3948. format: double
  3949. example: 1.51
  3950. description: 风险金额。
  3951. winLoss:
  3952. type: number
  3953. format: double
  3954. example: null
  3955. x-nullable: true
  3956. description: 已结算投注的盈亏。
  3957. oddsFormat:
  3958. $ref: '#/definitions/OddsFormat'
  3959. customerCommission:
  3960. type: number
  3961. format: double
  3962. example: null
  3963. x-nullable: true
  3964. description: Client’s commission on the bet.
  3965. cancellationReason:
  3966. $ref: '#/definitions/CancellationReason'
  3967. updateSequence:
  3968. type: integer
  3969. format: int64
  3970. example: 113214135
  3971. description: 更新序列号. It gets updated when the bet status change.
  3972. specialId:
  3973. type: integer
  3974. format: int64
  3975. example: 726397620
  3976. description: ''
  3977. specialName:
  3978. type: string
  3979. example: Denver Broncos Regular Season Wins?
  3980. description: ''
  3981. contestantId:
  3982. type: integer
  3983. format: int64
  3984. example: 726397622
  3985. description: ''
  3986. contestantName:
  3987. type: string
  3988. example: Under
  3989. description: ''
  3990. price:
  3991. type: number
  3992. format: double
  3993. example: -151
  3994. description: ''
  3995. handicap:
  3996. type: number
  3997. format: double
  3998. example: 8.5
  3999. description: ''
  4000. units:
  4001. type: string
  4002. example: Regular Season Wins
  4003. description: ''
  4004. sportId:
  4005. type: integer
  4006. format: int32
  4007. example: 15
  4008. description: ''
  4009. leagueId:
  4010. type: integer
  4011. format: int32
  4012. example: 889
  4013. description: ''
  4014. eventId:
  4015. type: integer
  4016. format: int64
  4017. example: null
  4018. x-nullable: true
  4019. description: Populated if bet was placed on a special linked to the event.
  4020. periodNumber:
  4021. type: integer
  4022. format: int32
  4023. example: null
  4024. x-nullable: true
  4025. description: Populated if bet was placed on a special linked to the event.
  4026. team1:
  4027. type: string
  4028. example: null
  4029. x-nullable: true
  4030. description: Populated if bet was placed on a special linked to the event.
  4031. team2:
  4032. type: string
  4033. example: null
  4034. x-nullable: true
  4035. description: Populated if bet was placed on a special linked to the event.
  4036. eventStartTime:
  4037. type: string
  4038. format: date-time
  4039. example: 2017-10-05T01:32:59Z
  4040. x-nullable: false
  4041. description: Date time when the event starts.
  4042. resultingUnit:
  4043. type: string
  4044. x-nullable: false
  4045. description: Specifies based on what the event is being resulted, e.g. Corners, Bookings , Regular.
  4046. description: ''
  4047. GetBetsByTypeResponseV3:
  4048. type: object
  4049. properties:
  4050. moreAvailable:
  4051. type: boolean
  4052. description: Whether there are more pages available.
  4053. pageSize:
  4054. type: integer
  4055. description: Page size. Default is 1000.
  4056. example: 1000
  4057. fromRecord:
  4058. type: integer
  4059. description: Starting record number of the result set. Records start at zero
  4060. toRecord:
  4061. type: integer
  4062. description: Ending record number of the result set.
  4063. straightBets:
  4064. type: array
  4065. description: A collection of placed straight bets.
  4066. items:
  4067. $ref: '#/definitions/StraightBetV3'
  4068. parlayBets:
  4069. type: array
  4070. description: A collection of placed parlay bets.
  4071. items:
  4072. $ref: '#/definitions/ParlayBetV2'
  4073. teaserBets:
  4074. type: array
  4075. description: A collection of placed teaser bets.
  4076. items:
  4077. $ref: '#/definitions/TeaserBet'
  4078. specialBets:
  4079. type: array
  4080. description: A collection of placed special bets.
  4081. items:
  4082. $ref: '#/definitions/SpecialBetV3'
  4083. manualBets:
  4084. type: array
  4085. description: A collection of placed manual bets.
  4086. items:
  4087. $ref: '#/definitions/ManualBet'
  4088. description: ''
  4089. GetRegradedWagerHistoryResponseV1:
  4090. type: object
  4091. properties:
  4092. moreAvailable:
  4093. type: boolean
  4094. description: Whether there are more pages available.
  4095. pageSize:
  4096. type: integer
  4097. description: Page size. Default is 1000.
  4098. example: 1000
  4099. fromRecord:
  4100. type: integer
  4101. description: Starting record number of the result set. Records start at zero
  4102. toRecord:
  4103. type: integer
  4104. description: Ending record number of the result set.
  4105. straightBets:
  4106. type: array
  4107. description: A collection of placed straight bets.
  4108. items:
  4109. $ref: '#/definitions/StraightBetRegradedWagerHistoryV1'
  4110. parlayBets:
  4111. type: array
  4112. description: A collection of placed parlay bets.
  4113. items:
  4114. $ref: '#/definitions/ParlayBetRegradedWagerHistoryV1'
  4115. teaserBets:
  4116. type: array
  4117. description: A collection of placed teaser bets.
  4118. items:
  4119. $ref: '#/definitions/TeaserBetRegradedWagerHistoryV1'
  4120. specialBets:
  4121. type: array
  4122. description: A collection of placed special bets.
  4123. items:
  4124. $ref: '#/definitions/SpecialBetRegradedWagerHistoryV1'
  4125. manualBets:
  4126. type: array
  4127. description: A collection of placed manual bets.
  4128. items:
  4129. $ref: '#/definitions/ManualBetRegradedWagerHistoryV1'
  4130. description: ''
  4131. TeaserBet:
  4132. type: object
  4133. required:
  4134. - betId
  4135. - betStatus
  4136. - betType
  4137. - isSameEventOnly
  4138. - legs
  4139. - maxPicks
  4140. - minPicks
  4141. - oddsFormat
  4142. - placedAt
  4143. - risk
  4144. - teaserName
  4145. - updateSequence
  4146. - wagerNumber
  4147. - win
  4148. properties:
  4149. betId:
  4150. type: integer
  4151. format: int64
  4152. description: 投注标识
  4153. uniqueRequestId:
  4154. type: string
  4155. format: uuid
  4156. example: 10924E23-A2FE-4317-BFFD-80504675F554
  4157. description: Unique Request Id
  4158. wagerNumber:
  4159. type: integer
  4160. format: int32
  4161. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  4162. placedAt:
  4163. type: string
  4164. format: date-time
  4165. description: 投注下单时间。
  4166. betStatus:
  4167. type: string
  4168. description: |
  4169. Bet Status.
  4170. ACCEPTED = 投注已接受。
  4171. CANCELLED = 按 Pinnacle 规则取消。
  4172. LOSE = 已结算为输。
  4173. REFUNDED = 赛事取消或投注结算为平局时退款。
  4174. WON = 已结算为赢。
  4175. enum:
  4176. - ACCEPTED
  4177. - CANCELLED
  4178. - LOSE
  4179. - REFUNDED
  4180. - WON
  4181. betType:
  4182. type: string
  4183. default: TEASER
  4184. example: TEASER
  4185. win:
  4186. type: number
  4187. format: double
  4188. description: 盈利金额。
  4189. risk:
  4190. type: number
  4191. format: double
  4192. description: 风险金额。
  4193. winLoss:
  4194. type: number
  4195. format: double
  4196. description: 已结算投注的盈亏。
  4197. oddsFormat:
  4198. $ref: '#/definitions/OddsFormat'
  4199. customerCommission:
  4200. type: number
  4201. format: double
  4202. description: Client’s commission on the bet.
  4203. cancellationReason:
  4204. $ref: '#/definitions/CancellationReason'
  4205. updateSequence:
  4206. type: integer
  4207. format: int64
  4208. description: 更新序列号
  4209. teaserName:
  4210. type: string
  4211. description: ''
  4212. isSameEventOnly:
  4213. type: boolean
  4214. description: ''
  4215. minPicks:
  4216. type: number
  4217. format: double
  4218. description: ''
  4219. maxPicks:
  4220. type: number
  4221. format: double
  4222. description: ''
  4223. price:
  4224. type: number
  4225. format: double
  4226. example: 682
  4227. description: 'Populated for all teaser bets and will be the original price at the time of the placement.'
  4228. finalPrice:
  4229. type: number
  4230. format: double
  4231. example: 0
  4232. description: Only for settled parlay. Final price may differ in case leg was cancelled or half won.
  4233. teaserId:
  4234. type: number
  4235. format: int32
  4236. example: 0
  4237. description: Reference to the teaser id.
  4238. teaserGroupId:
  4239. type: number
  4240. format: int32
  4241. example: 0
  4242. description: Reference to the teaser group id.
  4243. legs:
  4244. type: array
  4245. description: ''
  4246. items:
  4247. $ref: '#/definitions/TeaserLeg'
  4248. description: ''
  4249. TeaserBetRegradedWagerHistoryV1:
  4250. type: object
  4251. required:
  4252. - betId
  4253. - betStatus
  4254. - betType
  4255. - isSameEventOnly
  4256. - legs
  4257. - maxPicks
  4258. - minPicks
  4259. - oddsFormat
  4260. - placedAt
  4261. - risk
  4262. - teaserName
  4263. - updateSequence
  4264. - wagerNumber
  4265. - win
  4266. properties:
  4267. betId:
  4268. type: integer
  4269. format: int64
  4270. description: 投注标识
  4271. originalBetId:
  4272. type: integer
  4273. format: int64
  4274. description: Original bet identification
  4275. uniqueRequestId:
  4276. type: string
  4277. format: uuid
  4278. example: 10924E23-A2FE-4317-BFFD-80504675F554
  4279. description: Unique Request Id
  4280. wagerNumber:
  4281. type: integer
  4282. format: int32
  4283. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  4284. placedAt:
  4285. type: string
  4286. format: date-time
  4287. description: 投注下单时间。
  4288. betStatus:
  4289. type: string
  4290. description: |
  4291. Bet Status.
  4292. ACCEPTED = 投注已接受。
  4293. CANCELLED = 按 Pinnacle 规则取消。
  4294. LOSE = 已结算为输。
  4295. REFUNDED = 赛事取消或投注结算为平局时退款。
  4296. WON = 已结算为赢。
  4297. enum:
  4298. - ACCEPTED
  4299. - CANCELLED
  4300. - LOSE
  4301. - REFUNDED
  4302. - WON
  4303. betType:
  4304. type: string
  4305. default: TEASER
  4306. example: TEASER
  4307. win:
  4308. type: number
  4309. format: double
  4310. description: 盈利金额。
  4311. risk:
  4312. type: number
  4313. format: double
  4314. description: 风险金额。
  4315. winLoss:
  4316. type: number
  4317. format: double
  4318. description: 已结算投注的盈亏。
  4319. oddsFormat:
  4320. $ref: '#/definitions/OddsFormat'
  4321. customerCommission:
  4322. type: number
  4323. format: double
  4324. description: Client’s commission on the bet.
  4325. cancellationReason:
  4326. $ref: '#/definitions/CancellationReason'
  4327. updateSequence:
  4328. type: integer
  4329. format: int64
  4330. description: 更新序列号
  4331. teaserName:
  4332. type: string
  4333. description: ''
  4334. isSameEventOnly:
  4335. type: boolean
  4336. description: ''
  4337. minPicks:
  4338. type: number
  4339. format: double
  4340. description: ''
  4341. maxPicks:
  4342. type: number
  4343. format: double
  4344. description: ''
  4345. price:
  4346. type: number
  4347. format: double
  4348. example: 682
  4349. description: 'Populated for all teaser bets and will be the original price at the time of the placement.'
  4350. finalPrice:
  4351. type: number
  4352. format: double
  4353. example: 0
  4354. description: Only for settled parlay. Final price may differ in case leg was cancelled or half won.
  4355. teaserId:
  4356. type: number
  4357. format: int32
  4358. example: 0
  4359. description: Reference to the teaser id.
  4360. teaserGroupId:
  4361. type: number
  4362. format: int32
  4363. example: 0
  4364. description: Reference to the teaser group id.
  4365. legs:
  4366. type: array
  4367. description: ''
  4368. items:
  4369. $ref: '#/definitions/TeaserLeg'
  4370. description: ''
  4371. ManualBet:
  4372. type: object
  4373. required:
  4374. - betId
  4375. - betStatus
  4376. - betType
  4377. - description
  4378. - placedAt
  4379. - risk
  4380. - updateSequence
  4381. - wagerNumber
  4382. - win
  4383. properties:
  4384. betId:
  4385. type: integer
  4386. format: int64
  4387. example: 760063588
  4388. description: 投注标识
  4389. wagerNumber:
  4390. type: integer
  4391. format: int32
  4392. example: 1
  4393. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  4394. placedAt:
  4395. type: string
  4396. format: date-time
  4397. example: '2017-09-06T14:56:27Z'
  4398. description: 投注下单时间。
  4399. betStatus:
  4400. type: string
  4401. description: |
  4402. Bet Status.
  4403. ACCEPTED = 投注已接受。
  4404. CANCELLED = 按 Pinnacle 规则取消。
  4405. LOSE = 已结算为输。
  4406. REFUNDED = When an event is cancelled or when the bet is settled as push, the bet will have REFUNDED status,
  4407. WON = The bet is settled as won
  4408. enum:
  4409. - ACCEPTED
  4410. - CANCELLED
  4411. - LOSE
  4412. - REFUNDED
  4413. - WON
  4414. betType:
  4415. type: string
  4416. default: MANUAL
  4417. example: MANUAL
  4418. win:
  4419. type: number
  4420. format: double
  4421. example: 15000
  4422. description: 盈利金额。
  4423. risk:
  4424. type: number
  4425. format: double
  4426. example: 500
  4427. description: 风险金额。
  4428. winLoss:
  4429. type: number
  4430. format: double
  4431. description: 已结算投注的盈亏。
  4432. updateSequence:
  4433. type: integer
  4434. format: int64
  4435. example: 112472310
  4436. description: 更新序列号
  4437. description:
  4438. type: string
  4439. example: Soccer Props - Partizan vs Crvena Zvezda - Partizan @ +3000
  4440. description: Manual bet description.
  4441. referenceBetId:
  4442. type: integer
  4443. format: int64
  4444. example: null
  4445. x-nullable: true
  4446. description: Referenced original bet id.
  4447. description: ''
  4448. ManualBetRegradedWagerHistoryV1:
  4449. type: object
  4450. required:
  4451. - betId
  4452. - betStatus
  4453. - betType
  4454. - description
  4455. - placedAt
  4456. - risk
  4457. - updateSequence
  4458. - wagerNumber
  4459. - win
  4460. properties:
  4461. betId:
  4462. type: integer
  4463. format: int64
  4464. example: 760063588
  4465. description: 投注标识
  4466. originalBetId:
  4467. type: integer
  4468. format: int64
  4469. example: 760063543
  4470. description: Original bet identification
  4471. wagerNumber:
  4472. type: integer
  4473. format: int32
  4474. example: 1
  4475. description: '注单标识。通过 API 下的所有投注该值为 1。网站经典视图支持同一注单内多笔竞猜/特殊投注及轮转串关,此时会有对应注单号。'
  4476. placedAt:
  4477. type: string
  4478. format: date-time
  4479. example: '2017-09-06T14:56:27Z'
  4480. description: 投注下单时间。
  4481. betStatus:
  4482. type: string
  4483. description: |
  4484. Bet Status.
  4485. ACCEPTED = 投注已接受。
  4486. CANCELLED = 按 Pinnacle 规则取消。
  4487. LOSE = 已结算为输。
  4488. REFUNDED = When an event is cancelled or when the bet is settled as push, the bet will have REFUNDED status,
  4489. WON = The bet is settled as won
  4490. enum:
  4491. - ACCEPTED
  4492. - CANCELLED
  4493. - LOSE
  4494. - REFUNDED
  4495. - WON
  4496. betType:
  4497. type: string
  4498. default: MANUAL
  4499. example: MANUAL
  4500. win:
  4501. type: number
  4502. format: double
  4503. example: 15000
  4504. description: 盈利金额。
  4505. risk:
  4506. type: number
  4507. format: double
  4508. example: 500
  4509. description: 风险金额。
  4510. winLoss:
  4511. type: number
  4512. format: double
  4513. description: 已结算投注的盈亏。
  4514. updateSequence:
  4515. type: integer
  4516. format: int64
  4517. example: 112472310
  4518. description: 更新序列号
  4519. description:
  4520. type: string
  4521. example: Soccer Props - Partizan vs Crvena Zvezda - Partizan @ +3000
  4522. description: Manual bet description.
  4523. referenceBetId:
  4524. type: integer
  4525. format: int64
  4526. example: null
  4527. x-nullable: true
  4528. description: Referenced original bet id.
  4529. description: ''
  4530. TeaserLeg:
  4531. type: object
  4532. properties:
  4533. sportId:
  4534. type: integer
  4535. format: int32
  4536. description: ''
  4537. legBetType:
  4538. type: string
  4539. description: 'Teaser leg type.'
  4540. enum:
  4541. - SPREAD
  4542. - TOTAL_POINTS
  4543. legBetStatus:
  4544. type: string
  4545. description: |
  4546. CANCELLED = The leg is canceled- the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  4547. LOSE = The leg is a loss or a push-lose. When Push-lose happens, the half of the stake on the leg will be pushed to the next leg, and the other half will be a lose. This can happen only when the leg is placed on a quarter points handicap,
  4548. PUSH = The leg is a push - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  4549. REFUNDED = The leg is refunded - the stake on this leg will be transferred to the next one. In this case the leg will be ignored when calculating the winLoss,
  4550. WON = The leg is a won or a push-won. When Push-won happens, the half of the stake on the leg will be pushed to the next leg, and the other half is won. This can happen only when the leg is placed on a quarter points handicap
  4551. enum:
  4552. - CANCELLED
  4553. - LOSE
  4554. - PUSH
  4555. - REFUNDED
  4556. - WON
  4557. leagueId:
  4558. type: integer
  4559. format: int32
  4560. description: ''
  4561. eventId:
  4562. type: integer
  4563. format: int64
  4564. description: ''
  4565. eventStartTime:
  4566. type: string
  4567. format: date-time
  4568. example: '2017-10-05T01:32:59Z'
  4569. description: 'Date time when the event starts.'
  4570. handicap:
  4571. type: number
  4572. format: double
  4573. description: ''
  4574. teamName:
  4575. type: string
  4576. description: ''
  4577. side:
  4578. type: string
  4579. description: '方向类型(大/小)。'
  4580. enum:
  4581. - OVER
  4582. - UNDER
  4583. team1:
  4584. type: string
  4585. description: ''
  4586. team2:
  4587. type: string
  4588. description: ''
  4589. periodNumber:
  4590. type: integer
  4591. format: int32
  4592. description: ''
  4593. resultingUnit:
  4594. type: string
  4595. description: 'Specifies based on what the event is being resulted, e.g. Corners, Bookings , Regular'
  4596. description: ''
  4597. OddsFormat:
  4598. type: string
  4599. description: |
  4600. Bet odds format.
  4601. AMERICAN = American odds format,
  4602. DECIMAL = Decimal (European) odds format,
  4603. HONGKONG = Hong Kong odds format,
  4604. INDONESIAN = Indonesian odds format,
  4605. MALAY = Malaysian odds format
  4606. enum:
  4607. - AMERICAN
  4608. - DECIMAL
  4609. - HONGKONG
  4610. - INDONESIAN
  4611. - MALAY
  4612. example: DECIMAL
  4613. BettingStatusResponse:
  4614. type: object
  4615. required:
  4616. - status
  4617. properties:
  4618. status:
  4619. type: string
  4620. description: |
  4621. Betting status.
  4622. enum:
  4623. - ALL_BETTING_ENABLED
  4624. - ALL_LIVE_BETTING_CLOSED
  4625. - ALL_BETTING_CLOSED
  4626. description: ''