E podes dar-me uma ajudinha para saber como faço isso de recolher as odds e depois gerar um gráfico ? ou é complicado ?
É muito simples usas o serviço da API getMarketPricesCompressed ou getMarketPrices e inseres cada registo numa tabela em base de dados, por exemplo com a estrutura abaixo:
CREATE TABLE IF NOT EXISTS `bets`.`odds` (
`id` INT NOT NULL AUTO_INCREMENT ,
`exchange_house_id` INT NOT NULL ,
`market_id` INT NOT NULL ,
`runner_id` INT NOT NULL ,
`total_amount_matched` DOUBLE NOT NULL ,
`price_to_back1` DECIMAL(6,2) NOT NULL ,
`amount_to_back1` DECIMAL(9,2) NOT NULL ,
`price_to_back2` DECIMAL(6,2) NOT NULL ,
`amount_to_back2` DECIMAL(9,2) NOT NULL ,
`price_to_back3` DECIMAL(6,2) NOT NULL ,
`amount_to_back3` DECIMAL(9,2) NOT NULL ,
`price_to_lay1` DECIMAL(6,2) NOT NULL ,
`amount_to_lay1` DECIMAL(9,2) NOT NULL ,
`price_to_lay2` DECIMAL(6,2) NOT NULL ,
`amount_to_lay2` DECIMAL(9,2) NOT NULL ,
`price_to_lay3` DECIMAL(6,2) NOT NULL ,
`amount_to_lay3` DECIMAL(9,2) NOT NULL ,
`in_play` ENUM('Y', 'N') NOT NULL ,
`imported_date` DATETIME NOT NULL ,
PRIMARY KEY (`id`) )
ENGINE = MyISAM
COMMENT = 'This is a heavy data table, MyISAM shoul be used, with no relations! Use decimals to avoid round problems with floats.'