The BETDAQ API has two levels of interface: “Read-only” methods which only require your username and “Secure” methods which require user and password information.
All calls and their returncodes are detailed in the API V2 specification document, which is available here.
Read-only methods
Currently, the following Read-Only methods are available:
- GetCurrentSelectionSequenceNumber
- Returns the maximum selection sequence number
- GetEventSubTreeNoSelections
- Returns the tree of events and markets
- GetEventSubTreeWithSelections
- Returns the tree of events, markets and selections
- GetMarketInformation
- Returns detailed information about given markets(up to a maximum of 50), including the selections and prices
- GetPrices
- Returns the prices for the specified markets(up to a maximum of 50) – this is more optimized than GetMarketInformation
- ListMarketWithdrawalHistory
- Returns history of withdrawals for a given market
- ListSelectionsChangedSince
- Returns the selections with a sequence number greater than the sequence number provided
- ListTopLevelEvents
- Returns the set of top level events that are currently active
- GetOddsLadder
- Obtain the current odds ladder
Secure methods
These are the secure methods that are available. The information protection is provided using SSL.
- GetAccountBalances
- Returns a summary of your account balances
- GetOrderDetails
- Returns detailed information about a given Order
- CancelAllOrders
- Cancels all unmatched orders across all markets
- CancelAllOrdersOnMarket
- Cancels all unmatched orders on a market
- CancelOrders
- Cancels 1 or more Orders on the exchange
- ChangePassword
- Change password on the current account
- ListAccountPostings
- Returns an account summary and details of orders placed for the current punter
- ListAccountPostingsById
- Returns an account summary and details of orders placed for the current punter
- ListBlacklistInformation
- List blacklist information for the current punter
- ListBootstrapOrders
- Returns bootstrap orders that have a sequence number greater than the sequence number specified
- ListOrdersChangedSince
- Returns a list of orders that have changed since a given sequence number exchange
- PlaceOrderNoReceipt
- Places one or more orders(up to a maximum of 50) on the exchange and does not wait for response from exchange
- PlaceOrdersWithReceipt
- Places one or more orders(up to a maximum of 10) on the exchange and waits for response from exchange<
- UpdateOrdersNoReceipt
- Updates one or more orders(up to a maximum of 50) on the exchange without waiting for a response UpdateOrdersNoReceipt
- SuspendFromTrading
- Suspend any of your orders from being matched
- UnsuspendFromTrading
- Unsuspend yourself from being suspending from trading
- SuspendOrders
- Suspends one or more orders
- SuspendAllOrdersOnMarket
- Suspends all unmatched orders on a market
- SuspendAllOrders
- Suspends all unmatched orders across all markets
- UnsuspendOrders
- Unsuspends one or more suspended orders
- RegisterHeartbeat
- Register the Punter as requiring a Heartbeat
- ChangeHeartbeatRegistration
- Update the Heartbeat parameters for the Punter
- DeregisterHeartbeat
- Deregister the Punter from requiring a Heartbeat
- Pulse
- Notify the system that the application is still active and still has connectivity