Skip to content

Commit

Permalink
Fix some spellings
Browse files Browse the repository at this point in the history
  • Loading branch information
ml31415 committed Apr 25, 2024
1 parent 2cb1a5b commit 97be5df
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion betfair_parser/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This library aims for compatibility with any kind of http client. Thus, the objects within
the specification provide a straight forward way to quickly construct a http request out of
of a prepared header and body.
a prepared header and body.
"""

from betfair_parser.endpoints import ENDPOINTS
Expand Down
8 changes: 4 additions & 4 deletions betfair_parser/spec/betting/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class OrderProjection(DocumentedEnum):
"or partially matched bet (order)"
)
EXECUTION_COMPLETE = doc(
"An order that does not have any remaining unmatched portion. This is a fully matched bet (order)."
"An order that does not have any remaining unmatched portion. This is a fully matched bet (order)."
)


Expand All @@ -58,7 +58,7 @@ class RunnerStatus(DocumentedEnum):
)
REMOVED = auto()
HIDDEN = doc(
"The selection is hidden from the market. This occurs in Horse Racing markets were runners "
"The selection is hidden from the market. This occurs in Horse Racing markets were runners "
"is hidden when it is doesn't hold an official entry following an entry stage. This could be "
"because the horse was never entered or because they have been scratched from a race at a "
"declaration stage. All matched customer bet prices are set to 1.0 even if there are later "
Expand Down Expand Up @@ -158,7 +158,7 @@ class ExecutionReportStatus(DocumentedEnum):
"submitted in the same PlaceInstruction"
)
TIMEOUT = doc(
"The order timed out & the status of the bet is unknown. If a TIMEOUT error occurs on a "
"The order timed out & the status of the bet is unknown. If a TIMEOUT error occurs on a "
"placeOrders/replaceOrders request, you should check listCurrentOrders to verify the status of your "
"bets before placing further orders. Please Note: Timeouts will occur after 5 seconds of attempting "
"to process the bet but please allow up to 15 seconds for a timed out order to appear. After this "
Expand All @@ -184,7 +184,7 @@ class ExecutionReportErrorCode(DocumentedEnum):
LOSS_LIMIT_EXCEEDED = doc("The account has exceed the self imposed loss limit")
MARKET_SUSPENDED = doc("Market is suspended")
MARKET_NOT_OPEN_FOR_BETTING = doc(
"Market is not open for betting. It is either not yet active, suspended or closed awaiting " "settlement."
"Market is not open for betting. It is either not yet active, suspended or closed awaiting settlement."
)
DUPLICATE_TRANSACTION = doc(
"Duplicate customer reference data submitted - Please note: There is a time window associated with "
Expand Down
6 changes: 3 additions & 3 deletions betfair_parser/spec/betting/listings.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class ListMarketBook(_ListingRequest, kw_only=True, frozen=True):
Best Practice:
Customers seeking to use listMarketBook to obtain price, volume, unmatched (EXECUTABLE) orders
and matched position in a single operation should provide an OrderProjectionof “EXECUTABLE” in
and matched position in a single operation should provide an OrderProjection of “EXECUTABLE” in
their listMarketBook request and receive all unmatched (EXECUTABLE) orders and the aggregated
matched volume from all orders irrespective of whether they are partially or fully matched.
The level of matched volume aggregation (MatchProjection) requested should be
Expand All @@ -156,7 +156,7 @@ class ListMarketCatalogue(_ListingRequest, kw_only=True, frozen=True):
"""
Returns a list of information about published (ACTIVE/SUSPENDED) markets that does not change
(or changes very rarely). You use listMarketCatalogue to retrieve the name of the market, the
names of selections and other information about markets. Market Data Request Limits apply to
names of selections and other information about markets. Market Data Request Limits apply to
requests made to listMarketCatalogue.
Please note: listMarketCatalogue does not return markets that are CLOSED.
Expand Down Expand Up @@ -203,7 +203,7 @@ class ListRunnerBook(_ListingRequest, kw_only=True, frozen=True):
"""
Returns a list of dynamic data about a market and a specified runner. Dynamic data includes
prices, the status of the market, the status of selections, the traded volume, and the status
of any orders you have placed in the market..
of any orders you have placed in the market.
"""

params: _ListRunnerBookParams
Expand Down
2 changes: 1 addition & 1 deletion betfair_parser/spec/betting/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class _ListClearedOrdersParams(Params, frozen=True):

# Optionally restricts the results to be from/to the specified settled date. This date is inclusive,
# i.e. if an order was cleared on exactly this date (to the millisecond) then it will be included
# in the results. If the from is later than the to, no results will be returned.
# in the results. If 'from' is later than 'to', no results will be returned.
# Please Note: if you have a longer running market that is settled at multiple different times
# then there is no way to get the returned market rollup to only include bets settled in a certain
# date range, it will always return the overall position from the market including all settlements.
Expand Down
4 changes: 2 additions & 2 deletions betfair_parser/spec/betting/type_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class MarketDescription(BaseMessage, kw_only=True, frozen=True):


class RunnerMetaData(BaseMessage, frozen=True, rename="upper"):
# Yes, this is the only type definition, that has (mostly) uppered key names
# Yes, this is the only type definition, that has (mostly) upper-case key names
"""
Runner metadata as defined in the API as additional information.
https://docs.developer.betfair.com/display/1smk3cen4v3lu3yomq5qye0ni/Additional+Information
Expand Down Expand Up @@ -382,7 +382,7 @@ class MarketBook(BaseMessage, frozen=True):
bet_delay: Optional[int] = None # The number of seconds an order is held until it is submitted into the market
bsp_reconciled: Optional[bool] = None # True if the market starting price has been reconciled
complete: Optional[bool] = None # If false, runners may be added to the market
cross_matching: Optional[bool] = None # True if cross matching is enabled for this market
cross_matching: Optional[bool] = None # True if cross-matching is enabled for this market
inplay: Optional[bool] = None # True if the market is currently in play
key_line_description: Optional[KeyLineDescription] = None # Description of a market's key line
last_match_time: Optional[Date] = None # The most recent time an order was executed
Expand Down
4 changes: 1 addition & 3 deletions betfair_parser/spec/streaming/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ class PriceLadderDefinitionType(StrEnum):

class StatusErrorCode(DocumentedEnum):
# General errors not sent with id linking to specific request (as no request context)
INVALID_INPUT = doc(
"Failure code returned when an invalid input is provided (could not " "deserialize the message)"
)
INVALID_INPUT = doc("Failure code returned when an invalid input is provided (could not deserialize the message)")
TIMEOUT = doc("Failure code when a client times out (i.e. too slow sending data)")

# Specific to authentication
Expand Down

0 comments on commit 97be5df

Please sign in to comment.