forked from harveysburger/pinnaclewrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlaceBetRequest.cs
57 lines (41 loc) · 2.19 KB
/
PlaceBetRequest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using Newtonsoft.Json;
using PinnacleWrapper.Enums;
namespace PinnacleWrapper.Data
{
public class PlaceBetRequest
{
[JsonProperty(PropertyName = "uniqueRequestId")]
public Guid UniqueRequestId;
[JsonProperty(PropertyName = "acceptBetterLine")]
public bool AcceptBetterLine;
[JsonProperty(PropertyName = "customerReference")] // not required
public string CustomerReference;
[JsonProperty(PropertyName = "oddsFormat")]
public OddsFormat OddsFormat;
[JsonProperty(PropertyName = "stake")]
public decimal Stake;
[JsonProperty(PropertyName = "winRiskStake")]
public WinRiskType WinRiskType;
[JsonProperty(PropertyName = "sportId")]
public int SportId;
[JsonProperty(PropertyName = "eventId")]
public decimal EventId;
[JsonProperty(PropertyName = "periodNumber")] // This represents the period of the match. For example, for soccer we have: 0 - Game, 1 - 1st Half, 2 - 2nd Half
public int PeriodNumber;
[JsonProperty(PropertyName = "betType")]
public BetType BetType;
[JsonProperty(PropertyName = "team")] // Chosen team type. This is needed only for SPREAD, MONEYLINE and TEAM_TOTAL_POINTS bet types
public TeamType? TeamType;
[JsonProperty(PropertyName = "side")] // Chosen side. This is needed only for TOTAL_POINTS and TEAM_TOTAL_POINTS bet type
public SideType? SideType;
[JsonProperty(PropertyName = "lineId")]
public int LineId;
[JsonProperty(PropertyName = "altLineId")] // Alternate line identification. Not required
public int? AltLineId;
[JsonProperty(PropertyName = "pitcher1MustStart")] // Baseball only. Refers to the pitcher for TEAM_TYPE.Team1. This applicable only for MONEYLINE bet type, for all other bet types this has to be TRUE
public bool? Pitcher1MustStart;
[JsonProperty(PropertyName = "pitcher2MustStart")] // Baseball only. Refers to the pitcher for TEAM_TYPE.Team1. This applicable only for MONEYLINE bet type, for all other bet types this has to be TRUE
public bool? Pitcher2MustStart;
}
}