completed first cut at betdaq api