dbo.fn_GetStake

Syntax:
dbo.fn_GetStake(id_race, id_horse, bid_type, pos)

Output:
(decimal) Returns the stake at a specified position. When pos=1 returns the stake of the best price.

Input parameters:
id_race (integer)Id of the market
id_horse (integer)Id of the runner
bid_type (string)'b'=back 'l'=lay
pos (integer)Position of the stake to retrieve