forked from Nyarum/betting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
betting_params.go
67 lines (61 loc) · 3.77 KB
/
betting_params.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package betting
import "time"
type DateRange struct {
From time.Time `json:"from,omitempty"`
To time.Time `json:"to,omitempty"`
}
type RunnerID struct {
MarketID string
SelectionID int64
Handicap float64
}
type EXBestOffersOverrides struct {
BestPricesDepth int `json:"bestPricesDepth,omitempty"`
RollupModel ERollupModel `json:"rollupModel,omitempty"`
RollupLimit int `json:"rollupLimit,omitempty"`
RollupLiabilityThreshold float64 `json:"rollupLiabilityThreshold,omitempty"`
RollupLiabilityFactor int `json:"rollupLiabilityFactor,omitempty"`
}
type PriceProjection struct {
PriceData []EPriceData `json:"priceData,omitempty"`
EXBestOffersOverrides *EXBestOffersOverrides `json:"exBestOffersOverrides,omitempty"`
Virtualise bool `json:"virtualise,omitempty"`
RolloverStakes bool `json:"rolloverStakes,omitempty"`
}
type Filter struct {
Wallet EWallet `json:"wallet,omitempty"`
Locale string `json:"locale,omitempty"`
FromRecord int `json:"fromRecord,omitempty"`
RecordCount int `json:"recordCount,omitempty"`
ItemDateRange *DateRange `json:"itemDateRange,omitempty"`
IncludeItem EIncludeItem `json:"recordCount,omitempty"`
FromCurrency string `json:"fromCurrency,omitempty"`
From EWallet `json:"from,omitempty"`
To EWallet `json:"to,omitempty"`
Amount float64 `json:"amount,omitempty"`
BetIDs []string `json:"betIds,omitempty"`
MarketIDs []string `json:"marketIds,omitempty"`
PriceProjection *PriceProjection `json:"priceProjection,omitempty"`
OrderProjection EOrderProjection `json:"orderProjection,omitempty"`
MarketProjection *[]EMarketProjection `json:"marketProjection,omitempty"`
DateRange *DateRange `json:"dateRange,omitempty"`
OrderBy EOrderBy `json:"orderBy,omitempty"`
SortDir ESortDir `json:"sortDir,omitempty"`
Sort EMarketSort `json:"sort,omitempty"`
MarketFilter *MarketFilter `json:"filter,omitempty"`
BetStatus EBetStatus `json:"betStatus,omitempty"`
EventTypeIDs []string `json:"eventTypeIds,omitempty"`
EventIDs []string `json:"eventIds,omitempty"`
RunnerIDs []RunnerID `json:"runnerIds,omitempty"`
Side ESide `json:"side,omitempty"`
SettledDateRange *DateRange `json:"settledDateRange,omitempty"`
GroupBy EGroupBy `json:"groupBy,omitempty"`
IncludeItemDescription bool `json:"includeItemDescription,omitempty"`
MaxResults int `json:"maxResults,omitempty"`
IncludeSettledBets bool `json:"includeSettledBets,omitempty"`
TimeGranularity ETimeGranularity `json:"granularity,omitempty"`
PlaceOrdersMarketID string `json:"marketId,omitempty"`
PlaceOrdersInstructions []PlaceInstruction `json:"instructions,omitempty"`
CustomerOrderRefs []string `json:"customerOrderRefs,omitempty"`
CustomerStrategyRefs []string `json:"customerStrategyRefs,omitempty"`
}