swagger

package module
v0.0.0-...-bc0f821 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

README

Go API client for swagger

API to receive streamed updates. This is an ssl socket connection of CRLF delimited json messages (see RequestMessage & ResponseMessage)

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.1423
  • Package version: 1.0.0
  • Build date: 2022-05-28T08:31:41.818+01:00
  • Build package: class io.swagger.codegen.languages.GoClientCodegen For more information, please visit https://developer.betfair.com/support/

Installation

Put the package under your project folder and add the following in import:

    "./swagger"

Documentation for API Endpoints

All URIs are relative to http://stream-api.betfair.com:443/api

Class Method HTTP request Description
DefaultApi RequestPost Post /request

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

bdp@betfair.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
}

func (*APIClient) CallAPI

func (c *APIClient) CallAPI(path string, method string,
	postBody interface{},
	headerParams map[string]string,
	queryParams url.Values,
	formParams map[string]string,
	fileName string,
	fileBytes []byte) (*resty.Response, error)

func (*APIClient) ParameterToString

func (c *APIClient) ParameterToString(obj interface{}, collectionFormat string) string

func (*APIClient) SelectHeaderAccept

func (c *APIClient) SelectHeaderAccept(accepts []string) string

func (*APIClient) SelectHeaderContentType

func (c *APIClient) SelectHeaderContentType(contentTypes []string) string

type APIResponse

type APIResponse struct {
	*http.Response
	Message string `json:"message,omitempty"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AllRequestTypesExample

type AllRequestTypesExample struct {
	OpTypes string `json:"opTypes,omitempty"`

	Heartbeat HeartbeatMessage `json:"heartbeat,omitempty"`

	OrderSubscriptionMessage OrderSubscriptionMessage `json:"orderSubscriptionMessage,omitempty"`

	MarketSubscription MarketSubscriptionMessage `json:"marketSubscription,omitempty"`

	Authentication AuthenticationMessage `json:"authentication,omitempty"`
}

type AllResponseTypesExample

type AllResponseTypesExample struct {
	OpTypes string `json:"opTypes,omitempty"`

	MarketChangeMessage MarketChangeMessage `json:"marketChangeMessage,omitempty"`

	Connection ConnectionMessage `json:"connection,omitempty"`

	OrderChangeMessage OrderChangeMessage `json:"orderChangeMessage,omitempty"`

	Status StatusMessage `json:"status,omitempty"`
}

type AuthenticationMessage

type AuthenticationMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`

	Session string `json:"session,omitempty"`

	AppKey string `json:"appKey,omitempty"`
}

type Configuration

type Configuration struct {
	UserName     string            `json:"userName,omitempty"`
	Password     string            `json:"password,omitempty"`
	APIKeyPrefix map[string]string `json:"APIKeyPrefix,omitempty"`
	APIKey       map[string]string `json:"APIKey,omitempty"`

	DebugFile     string            `json:"debugFile,omitempty"`
	OAuthToken    string            `json:"oAuthToken,omitempty"`
	Timeout       int               `json:"timeout,omitempty"`
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	AccessToken   string            `json:"accessToken,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	APIClient     APIClient         `json:"APIClient,omitempty"`
	// contains filtered or unexported fields
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

func (*Configuration) GetAPIKeyWithPrefix

func (c *Configuration) GetAPIKeyWithPrefix(APIKeyIdentifier string) string

func (*Configuration) GetBasicAuthEncodedString

func (c *Configuration) GetBasicAuthEncodedString() string

func (*Configuration) GetDebug

func (c *Configuration) GetDebug() bool

func (*Configuration) SetDebug

func (c *Configuration) SetDebug(enable bool)

type ConnectionMessage

type ConnectionMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`

	// The connection id
	ConnectionId string `json:"connectionId,omitempty"`
}

type DefaultApi

type DefaultApi struct {
	Configuration Configuration
}

func NewDefaultApi

func NewDefaultApi() *DefaultApi

func NewDefaultApiWithBasePath

func NewDefaultApiWithBasePath(basePath string) *DefaultApi

func (DefaultApi) RequestPost

func (a DefaultApi) RequestPost(requestMessage AllRequestTypesExample) (*AllResponseTypesExample, *APIResponse, error)

*

*
* This is a socket protocol delimited by CRLF (not http)
*
* @param requestMessage Requests are sent to socket
* @return *AllResponseTypesExample

type HeartbeatMessage

type HeartbeatMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`
}

type KeyLineDefinition

type KeyLineDefinition struct {
	Kl []KeyLineSelection `json:"kl,omitempty"`
}

type KeyLineSelection

type KeyLineSelection struct {
	Id int64 `json:"id,omitempty"`

	Hc float64 `json:"hc,omitempty"`
}

type MarketChange

type MarketChange struct {

	// Runner Changes - a list of changes to runners (or null if un-changed)
	Rc []RunnerChange `json:"rc,omitempty"`

	// Image - replace existing prices / data with the data supplied: it is not a delta (or null if delta)
	Img bool `json:"img,omitempty"`

	// The total amount matched across the market. This value is truncated at 2dp (or null if un-changed)
	Tv float64 `json:"tv,omitempty"`

	// Conflated - have more than a single change been combined (or null if not conflated)
	Con bool `json:"con,omitempty"`

	// Market Definition - the definition of the market (or null if un-changed)
	MarketDefinition MarketDefinition `json:"marketDefinition,omitempty"`

	// Market Id - the id of the market
	Id string `json:"id,omitempty"`
}

type MarketChangeMessage

type MarketChangeMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`

	// Change Type - set to indicate the type of change - if null this is a delta)
	Ct string `json:"ct,omitempty"`

	// Token value (non-null) should be stored and passed in a MarketSubscriptionMessage to resume subscription (in case of disconnect)
	Clk string `json:"clk,omitempty"`

	// Heartbeat Milliseconds - the heartbeat rate (may differ from requested: bounds are 500 to 30000)
	HeartbeatMs int64 `json:"heartbeatMs,omitempty"`

	// Publish Time (in millis since epoch) that the changes were generated
	Pt int64 `json:"pt,omitempty"`

	// Token value (non-null) should be stored and passed in a MarketSubscriptionMessage to resume subscription (in case of disconnect)
	InitialClk string `json:"initialClk,omitempty"`

	// MarketChanges - the modifications to markets (will be null on a heartbeat
	Mc []MarketChange `json:"mc,omitempty"`

	// Conflate Milliseconds - the conflation rate (may differ from that requested if subscription is delayed)
	ConflateMs int64 `json:"conflateMs,omitempty"`

	// Segment Type - if the change is split into multiple segments, this denotes the beginning and end of a change, and segments in between. Will be null if data is not segmented
	SegmentType string `json:"segmentType,omitempty"`

	// Stream status: set to null if the exchange stream data is up to date and 503 if the downstream services are experiencing latencies
	Status int32 `json:"status,omitempty"`
}

type MarketDataFilter

type MarketDataFilter struct {
	LadderLevels int32 `json:"ladderLevels,omitempty"`

	Fields []string `json:"fields,omitempty"`
}

type MarketDefinition

type MarketDefinition struct {
	Venue string `json:"venue,omitempty"`

	RaceType string `json:"raceType,omitempty"`

	SettledTime time.Time `json:"settledTime,omitempty"`

	Timezone string `json:"timezone,omitempty"`

	EachWayDivisor float64 `json:"eachWayDivisor,omitempty"`

	// The market regulators.
	Regulators []string `json:"regulators,omitempty"`

	MarketType string `json:"marketType,omitempty"`

	MarketBaseRate float64 `json:"marketBaseRate,omitempty"`

	NumberOfWinners int32 `json:"numberOfWinners,omitempty"`

	CountryCode string `json:"countryCode,omitempty"`

	// For Handicap and Line markets, the maximum value for the outcome, in market units for this market (eg 100 runs).
	LineMaxUnit float64 `json:"lineMaxUnit,omitempty"`

	InPlay bool `json:"inPlay,omitempty"`

	BetDelay int32 `json:"betDelay,omitempty"`

	BspMarket bool `json:"bspMarket,omitempty"`

	BettingType string `json:"bettingType,omitempty"`

	NumberOfActiveRunners int32 `json:"numberOfActiveRunners,omitempty"`

	// For Handicap and Line markets, the minimum value for the outcome, in market units for this market (eg 0 runs).
	LineMinUnit float64 `json:"lineMinUnit,omitempty"`

	EventId string `json:"eventId,omitempty"`

	CrossMatching bool `json:"crossMatching,omitempty"`

	RunnersVoidable bool `json:"runnersVoidable,omitempty"`

	TurnInPlayEnabled bool `json:"turnInPlayEnabled,omitempty"`

	// Definition of the price ladder type and any related data.
	PriceLadderDefinition PriceLadderDefinition `json:"priceLadderDefinition,omitempty"`

	// Definition of a markets key line selection (for valid markets), comprising the selectionId and handicap of the team it is applied to.
	KeyLineDefinition KeyLineDefinition `json:"keyLineDefinition,omitempty"`

	SuspendTime time.Time `json:"suspendTime,omitempty"`

	DiscountAllowed bool `json:"discountAllowed,omitempty"`

	PersistenceEnabled bool `json:"persistenceEnabled,omitempty"`

	Runners []RunnerDefinition `json:"runners,omitempty"`

	Version int64 `json:"version,omitempty"`

	// The Event Type the market is contained within.
	EventTypeId string `json:"eventTypeId,omitempty"`

	Complete bool `json:"complete,omitempty"`

	OpenDate time.Time `json:"openDate,omitempty"`

	MarketTime time.Time `json:"marketTime,omitempty"`

	BspReconciled bool `json:"bspReconciled,omitempty"`

	// For Handicap and Line markets, the lines available on this market will be between the range of lineMinUnit and lineMaxUnit, in increments of the lineInterval value. e.g. If unit is runs, lineMinUnit=10, lineMaxUnit=20 and lineInterval=0.5, then valid lines include 10, 10.5, 11, 11.5 up to 20 runs.
	LineInterval float64 `json:"lineInterval,omitempty"`

	Status string `json:"status,omitempty"`
}

type MarketFilter

type MarketFilter struct {
	CountryCodes []string `json:"countryCodes,omitempty"`

	BettingTypes []string `json:"bettingTypes,omitempty"`

	TurnInPlayEnabled bool `json:"turnInPlayEnabled,omitempty"`

	MarketTypes []string `json:"marketTypes,omitempty"`

	Venues []string `json:"venues,omitempty"`

	MarketIds []string `json:"marketIds,omitempty"`

	EventTypeIds []string `json:"eventTypeIds,omitempty"`

	EventIds []string `json:"eventIds,omitempty"`

	BspMarket bool `json:"bspMarket,omitempty"`

	RaceTypes []string `json:"raceTypes,omitempty"`
}

type MarketSubscriptionMessage

type MarketSubscriptionMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`

	// Segmentation Enabled - allow the server to send large sets of data in segments, instead of a single block
	SegmentationEnabled bool `json:"segmentationEnabled,omitempty"`

	// Token value delta (received in MarketChangeMessage) that should be passed to resume a subscription
	Clk string `json:"clk,omitempty"`

	// Heartbeat Milliseconds - the heartbeat rate (looped back on initial image after validation: bounds are 500 to 5000)
	HeartbeatMs int64 `json:"heartbeatMs,omitempty"`

	// Token value (received in initial MarketChangeMessage) that should be passed to resume a subscription
	InitialClk string `json:"initialClk,omitempty"`

	MarketFilter MarketFilter `json:"marketFilter,omitempty"`

	// Conflate Milliseconds - the conflation rate (looped back on initial image after validation: bounds are 0 to 120000)
	ConflateMs int64 `json:"conflateMs,omitempty"`

	MarketDataFilter MarketDataFilter `json:"marketDataFilter,omitempty"`
}

type Order

type Order struct {

	// Side - the side of the order. For Line markets a 'B' bet refers to a SELL line and an 'L' bet refers to a BUY line.
	Side string `json:"side,omitempty"`

	// Size Voided - the amount of the order that has been voided
	Sv float64 `json:"sv,omitempty"`

	// Persistence Type - whether the order will persist at in play or not (L = LAPSE, P = PERSIST, MOC = Market On Close)
	Pt string `json:"pt,omitempty"`

	// Order Type - the type of the order (L = LIMIT, MOC = MARKET_ON_CLOSE, LOC = LIMIT_ON_CLOSE)
	Ot string `json:"ot,omitempty"`

	// Lapse Status Reason Code - the reason that some or all of this order has been lapsed (null if no portion of the order is lapsed
	Lsrc string `json:"lsrc,omitempty"`

	// Price - the original placed price of the order. Line markets operate at even-money odds of 2.0. However, price for these markets refers to the line positions available as defined by the markets min-max range and interval steps
	P float64 `json:"p,omitempty"`

	// Size Cancelled - the amount of the order that has been cancelled
	Sc float64 `json:"sc,omitempty"`

	// Regulator Code - the regulator of the order
	Rc string `json:"rc,omitempty"`

	// Size - the original placed size of the order
	S float64 `json:"s,omitempty"`

	// Placed Date - the date the order was placed
	Pd int64 `json:"pd,omitempty"`

	// Regulator Auth Code - the auth code returned by the regulator
	Rac string `json:"rac,omitempty"`

	// Matched Date - the date the order was matched (null if the order is not matched)
	Md int64 `json:"md,omitempty"`

	// Cancelled Date - the date the order was cancelled (null if the order is not cancelled)
	Cd int64 `json:"cd,omitempty"`

	// Lapsed Date - the date the order was lapsed (null if the order is not lapsed)
	Ld int64 `json:"ld,omitempty"`

	// Size Lapsed - the amount of the order that has been lapsed
	Sl float64 `json:"sl,omitempty"`

	// Average Price Matched - the average price the order was matched at (null if the order is not matched). This value is not meaningful for activity on Line markets and is not guaranteed to be returned or maintained for these markets.
	Avp float64 `json:"avp,omitempty"`

	// Size Matched - the amount of the order that has been matched
	Sm float64 `json:"sm,omitempty"`

	// Order Reference - the customer's order reference for this order (empty string if one was not set)
	Rfo string `json:"rfo,omitempty"`

	// Bet Id - the id of the order
	Id string `json:"id,omitempty"`

	// BSP Liability - the BSP liability of the order (null if the order is not a BSP order)
	Bsp float64 `json:"bsp,omitempty"`

	// Strategy Reference - the customer's strategy reference for this order (empty string if one was not set)
	Rfs string `json:"rfs,omitempty"`

	// Status - the status of the order (E = EXECUTABLE, EC = EXECUTION_COMPLETE)
	Status string `json:"status,omitempty"`

	// Size Remaining - the amount of the order that is remaining unmatched
	Sr float64 `json:"sr,omitempty"`
}

type OrderChangeMessage

type OrderChangeMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`

	// Change Type - set to indicate the type of change - if null this is a delta)
	Ct string `json:"ct,omitempty"`

	// Token value (non-null) should be stored and passed in a MarketSubscriptionMessage to resume subscription (in case of disconnect)
	Clk string `json:"clk,omitempty"`

	// Heartbeat Milliseconds - the heartbeat rate (may differ from requested: bounds are 500 to 30000)
	HeartbeatMs int64 `json:"heartbeatMs,omitempty"`

	// Publish Time (in millis since epoch) that the changes were generated
	Pt int64 `json:"pt,omitempty"`

	// OrderMarketChanges - the modifications to account's orders (will be null on a heartbeat
	Oc []OrderMarketChange `json:"oc,omitempty"`

	// Token value (non-null) should be stored and passed in a MarketSubscriptionMessage to resume subscription (in case of disconnect)
	InitialClk string `json:"initialClk,omitempty"`

	// Conflate Milliseconds - the conflation rate (may differ from that requested if subscription is delayed)
	ConflateMs int64 `json:"conflateMs,omitempty"`

	// Segment Type - if the change is split into multiple segments, this denotes the beginning and end of a change, and segments in between. Will be null if data is not segmented
	SegmentType string `json:"segmentType,omitempty"`

	// Stream status: set to null if the exchange stream data is up to date and 503 if the downstream services are experiencing latencies
	Status int32 `json:"status,omitempty"`
}

type OrderFilter

type OrderFilter struct {

	// Returns overall / net position (See: OrderRunnerChange.mb / OrderRunnerChange.ml). Default=true
	IncludeOverallPosition bool `json:"includeOverallPosition,omitempty"`

	// Internal use only & should not be set on your filter (your subscription is already locked to your account). If set subscription will fail.
	AccountIds []int64 `json:"accountIds,omitempty"`

	// Restricts to specified customerStrategyRefs; this will filter orders and StrategyMatchChanges accordingly (Note: overall postition is not filtered)
	CustomerStrategyRefs []string `json:"customerStrategyRefs,omitempty"`

	// Returns strategy positions (See: OrderRunnerChange.smc=Map<customerStrategyRef, StrategyMatchChange>) - these are sent in delta format as per overall position. Default=false
	PartitionMatchedByStrategyRef bool `json:"partitionMatchedByStrategyRef,omitempty"`
}

type OrderMarketChange

type OrderMarketChange struct {
	AccountId int64 `json:"accountId,omitempty"`

	// Order Changes - a list of changes to orders on a selection
	Orc []OrderRunnerChange `json:"orc,omitempty"`

	Closed bool `json:"closed,omitempty"`

	// Market Id - the id of the market the order is on
	Id string `json:"id,omitempty"`

	FullImage bool `json:"fullImage,omitempty"`
}

type OrderRunnerChange

type OrderRunnerChange struct {

	// Matched Backs - matched amounts by distinct matched price on the Back side for this runner (selection)
	Mb [][]float64 `json:"mb,omitempty"`

	// Strategy Matches - Matched Backs and Matched Lays grouped by strategy reference
	Smc map[string]StrategyMatchChange `json:"smc,omitempty"`

	// Unmatched Orders - orders on this runner (selection) that are not fully matched
	Uo []Order `json:"uo,omitempty"`

	// Selection Id - the id of the runner (selection)
	Id int64 `json:"id,omitempty"`

	// Handicap - the handicap of the runner (selection) (null if not applicable)
	Hc float64 `json:"hc,omitempty"`

	FullImage bool `json:"fullImage,omitempty"`

	// Matched Lays - matched amounts by distinct matched price on the Lay side for this runner (selection)
	Ml [][]float64 `json:"ml,omitempty"`
}

type OrderSubscriptionMessage

type OrderSubscriptionMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`

	// Segmentation Enabled - allow the server to send large sets of data in segments, instead of a single block
	SegmentationEnabled bool `json:"segmentationEnabled,omitempty"`

	// Optional filter applied to order subscription
	OrderFilter OrderFilter `json:"orderFilter,omitempty"`

	// Token value delta (received in MarketChangeMessage) that should be passed to resume a subscription
	Clk string `json:"clk,omitempty"`

	// Heartbeat Milliseconds - the heartbeat rate (looped back on initial image after validation: bounds are 500 to 5000)
	HeartbeatMs int64 `json:"heartbeatMs,omitempty"`

	// Token value (received in initial MarketChangeMessage) that should be passed to resume a subscription
	InitialClk string `json:"initialClk,omitempty"`

	// Conflate Milliseconds - the conflation rate (looped back on initial image after validation: bounds are 0 to 120000)
	ConflateMs int64 `json:"conflateMs,omitempty"`
}

type PriceLadderDefinition

type PriceLadderDefinition struct {
	Type_ string `json:"type,omitempty"`
}

type RequestMessage

type RequestMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`
}

type ResponseMessage

type ResponseMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`
}

type RunnerChange

type RunnerChange struct {

	// The total amount matched. This value is truncated at 2dp.
	Tv float64 `json:"tv,omitempty"`

	// Best Available To Back - LevelPriceVol triple delta of price changes, keyed by level (0 vol is remove)
	Batb [][]float64 `json:"batb,omitempty"`

	// Starting Price Back - PriceVol tuple delta of price changes (0 vol is remove)
	Spb [][]float64 `json:"spb,omitempty"`

	// Best Display Available To Lay (includes virtual prices)- LevelPriceVol triple delta of price changes, keyed by level (0 vol is remove)
	Bdatl [][]float64 `json:"bdatl,omitempty"`

	// Traded - PriceVol tuple delta of price changes (0 vol is remove)
	Trd [][]float64 `json:"trd,omitempty"`

	// Starting Price Far - The far starting price (or null if un-changed)
	Spf float64 `json:"spf,omitempty"`

	// Last Traded Price - The last traded price (or null if un-changed)
	Ltp float64 `json:"ltp,omitempty"`

	// Available To Back - PriceVol tuple delta of price changes (0 vol is remove)
	Atb [][]float64 `json:"atb,omitempty"`

	// Starting Price Lay - PriceVol tuple delta of price changes (0 vol is remove)
	Spl [][]float64 `json:"spl,omitempty"`

	// Starting Price Near - The far starting price (or null if un-changed)
	Spn float64 `json:"spn,omitempty"`

	// Available To Lay - PriceVol tuple delta of price changes (0 vol is remove)
	Atl [][]float64 `json:"atl,omitempty"`

	// Best Available To Lay - LevelPriceVol triple delta of price changes, keyed by level (0 vol is remove)
	Batl [][]float64 `json:"batl,omitempty"`

	// Selection Id - the id of the runner (selection)
	Id int64 `json:"id,omitempty"`

	// Handicap - the handicap of the runner (selection) (null if not applicable)
	Hc float64 `json:"hc,omitempty"`

	// Best Display Available To Back (includes virtual prices)- LevelPriceVol triple delta of price changes, keyed by level (0 vol is remove)
	Bdatb [][]float64 `json:"bdatb,omitempty"`
}

type RunnerDefinition

type RunnerDefinition struct {
	SortPriority int32 `json:"sortPriority,omitempty"`

	RemovalDate time.Time `json:"removalDate,omitempty"`

	// Selection Id - the id of the runner (selection)
	Id int64 `json:"id,omitempty"`

	// Handicap - the handicap of the runner (selection) (null if not applicable)
	Hc float64 `json:"hc,omitempty"`

	AdjustmentFactor float64 `json:"adjustmentFactor,omitempty"`

	Bsp float64 `json:"bsp,omitempty"`

	Status string `json:"status,omitempty"`
}

type StatusMessage

type StatusMessage struct {

	// The operation type
	Op string `json:"op,omitempty"`

	// Client generated unique id to link request with response (like json rpc)
	Id int32 `json:"id,omitempty"`

	// The number of connections available for this account at this moment in time. Present on responses to Authentication messages only.
	ConnectionsAvailable int32 `json:"connectionsAvailable,omitempty"`

	// Additional message in case of a failure
	ErrorMessage string `json:"errorMessage,omitempty"`

	// The type of error in case of a failure
	ErrorCode string `json:"errorCode,omitempty"`

	// The connection id
	ConnectionId string `json:"connectionId,omitempty"`

	// Is the connection now closed
	ConnectionClosed bool `json:"connectionClosed,omitempty"`

	// The status of the last request
	StatusCode string `json:"statusCode,omitempty"`
}

type StrategyMatchChange

type StrategyMatchChange struct {

	// Matched Backs - matched amounts by distinct matched price on the Back side for this strategy
	Mb [][]float64 `json:"mb,omitempty"`

	// Matched Lays - matched amounts by distinct matched price on the Lay side for this strategy
	Ml [][]float64 `json:"ml,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL