be-components 7.4.7 → 7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/ApiOverrides/index.js +4 -0
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/BetRouter/api/index.js +884 -0
- package/lib/commonjs/BetRouter/api/index.js.map +1 -0
- package/lib/commonjs/BetRouter/api/types.js +2 -0
- package/lib/commonjs/BetRouter/api/types.js.map +1 -0
- package/lib/commonjs/BetRouter/components/AccountManager.js +592 -0
- package/lib/commonjs/BetRouter/components/AccountManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/AdminPortal.js +51 -0
- package/lib/commonjs/BetRouter/components/AdminPortal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunities.js +550 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js +320 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js.map +1 -0
- package/lib/commonjs/BetRouter/components/ContestLiquidity.js +666 -0
- package/lib/commonjs/BetRouter/components/ContestLiquidity.js.map +1 -0
- package/lib/commonjs/BetRouter/components/ContestSelector.js +193 -0
- package/lib/commonjs/BetRouter/components/ContestSelector.js.map +1 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.js +332 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js +545 -0
- package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/OpportunityHistory.js +489 -0
- package/lib/commonjs/BetRouter/components/OpportunityHistory.js.map +1 -0
- package/lib/commonjs/BetRouter/components/PartnerCredentials.js +229 -0
- package/lib/commonjs/BetRouter/components/PartnerCredentials.js.map +1 -0
- package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js +262 -0
- package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/AutoFillView.js +380 -0
- package/lib/commonjs/BetRouter/components/admin/AutoFillView.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/ConfigManager.js +814 -0
- package/lib/commonjs/BetRouter/components/admin/ConfigManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/JobManager.js +895 -0
- package/lib/commonjs/BetRouter/components/admin/JobManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueContests.js +2844 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueContests.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js +378 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js +795 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
- package/lib/commonjs/BetRouter/index.js +411 -0
- package/lib/commonjs/BetRouter/index.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js +312 -0
- package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/DesktopLayout.js +271 -0
- package/lib/commonjs/BetRouter/layouts/DesktopLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js +435 -0
- package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/MobileLayout.js +293 -0
- package/lib/commonjs/BetRouter/layouts/MobileLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/lib/commonjs/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/lib/commonjs/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/lib/commonjs/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/lib/commonjs/BetRouter/types/README.md +249 -0
- package/lib/commonjs/BetRouter/types/accounts.js +2 -0
- package/lib/commonjs/BetRouter/types/accounts.js.map +1 -0
- package/lib/commonjs/BetRouter/types/api-contracts.js +776 -0
- package/lib/commonjs/BetRouter/types/api-contracts.js.map +1 -0
- package/lib/commonjs/BetRouter/types/config.js +2 -0
- package/lib/commonjs/BetRouter/types/config.js.map +1 -0
- package/lib/commonjs/BetRouter/types/contests.js +2 -0
- package/lib/commonjs/BetRouter/types/contests.js.map +1 -0
- package/lib/commonjs/BetRouter/types/credentials.js +90 -0
- package/lib/commonjs/BetRouter/types/credentials.js.map +1 -0
- package/lib/commonjs/BetRouter/types/index.js +149 -0
- package/lib/commonjs/BetRouter/types/index.js.map +1 -0
- package/lib/commonjs/BetRouter/types/jobs.js +2 -0
- package/lib/commonjs/BetRouter/types/jobs.js.map +1 -0
- package/lib/commonjs/BetRouter/types/leagues.js +2 -0
- package/lib/commonjs/BetRouter/types/leagues.js.map +1 -0
- package/lib/commonjs/BetRouter/types/liquidity.js +2 -0
- package/lib/commonjs/BetRouter/types/liquidity.js.map +1 -0
- package/lib/commonjs/BetRouter/types/markets.js +2 -0
- package/lib/commonjs/BetRouter/types/markets.js.map +1 -0
- package/lib/commonjs/BetRouter/types/opportunities.js +6 -0
- package/lib/commonjs/BetRouter/types/opportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/types/orders.js +2 -0
- package/lib/commonjs/BetRouter/types/orders.js.map +1 -0
- package/lib/commonjs/BetRouter/types/participants.js +2 -0
- package/lib/commonjs/BetRouter/types/participants.js.map +1 -0
- package/lib/commonjs/BetRouter/types/partners.js +2 -0
- package/lib/commonjs/BetRouter/types/partners.js.map +1 -0
- package/lib/commonjs/Charts/README.md +310 -0
- package/lib/commonjs/Charts/adapters/TradeChartAdapter.js +406 -0
- package/lib/commonjs/Charts/adapters/TradeChartAdapter.js.map +1 -0
- package/lib/commonjs/Charts/components/BaseLineChart.js +285 -0
- package/lib/commonjs/Charts/components/BaseLineChart.js.map +1 -0
- package/lib/commonjs/Charts/components/LivePriceChart.js +504 -0
- package/lib/commonjs/Charts/components/LivePriceChart.js.map +1 -0
- package/lib/commonjs/Charts/index.js +126 -0
- package/lib/commonjs/Charts/index.js.map +1 -0
- package/lib/commonjs/Charts/themes/chartTheme.js +141 -0
- package/lib/commonjs/Charts/themes/chartTheme.js.map +1 -0
- package/lib/commonjs/Charts/types.js +2 -0
- package/lib/commonjs/Charts/types.js.map +1 -0
- package/lib/commonjs/Charts/utils/formatters.js +194 -0
- package/lib/commonjs/Charts/utils/formatters.js.map +1 -0
- package/lib/commonjs/Components/Dropdown.js +5 -3
- package/lib/commonjs/Components/Dropdown.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +24 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/index.js +34 -0
- package/lib/commonjs/Components/index.js.map +1 -1
- package/lib/commonjs/LocationTracker/LocationStatus.js +5 -2
- package/lib/commonjs/LocationTracker/LocationStatus.js.map +1 -1
- package/lib/commonjs/LocationTracker/api/index.js +2 -2
- package/lib/commonjs/LocationTracker/api/index.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.d.js +16 -0
- package/lib/commonjs/types.d.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +4 -0
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/BetRouter/api/index.js +873 -0
- package/lib/module/BetRouter/api/index.js.map +1 -0
- package/lib/module/BetRouter/api/types.js +2 -0
- package/lib/module/BetRouter/api/types.js.map +1 -0
- package/lib/module/BetRouter/components/AccountManager.js +584 -0
- package/lib/module/BetRouter/components/AccountManager.js.map +1 -0
- package/lib/module/BetRouter/components/AdminPortal.js +43 -0
- package/lib/module/BetRouter/components/AdminPortal.js.map +1 -0
- package/lib/module/BetRouter/components/BuyOpportunities.js +542 -0
- package/lib/module/BetRouter/components/BuyOpportunities.js.map +1 -0
- package/lib/module/BetRouter/components/BuyOpportunityCard.js +313 -0
- package/lib/module/BetRouter/components/BuyOpportunityCard.js.map +1 -0
- package/lib/module/BetRouter/components/ContestLiquidity.js +658 -0
- package/lib/module/BetRouter/components/ContestLiquidity.js.map +1 -0
- package/lib/module/BetRouter/components/ContestSelector.js +185 -0
- package/lib/module/BetRouter/components/ContestSelector.js.map +1 -0
- package/lib/module/BetRouter/components/MyOpportunities.js +324 -0
- package/lib/module/BetRouter/components/MyOpportunities.js.map +1 -0
- package/lib/module/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/lib/module/BetRouter/components/OpportunityDetailModal.js +538 -0
- package/lib/module/BetRouter/components/OpportunityDetailModal.js.map +1 -0
- package/lib/module/BetRouter/components/OpportunityHistory.js +481 -0
- package/lib/module/BetRouter/components/OpportunityHistory.js.map +1 -0
- package/lib/module/BetRouter/components/PartnerCredentials.js +222 -0
- package/lib/module/BetRouter/components/PartnerCredentials.js.map +1 -0
- package/lib/module/BetRouter/components/PlacedOpportunityModal.js +255 -0
- package/lib/module/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
- package/lib/module/BetRouter/components/admin/AutoFillView.js +372 -0
- package/lib/module/BetRouter/components/admin/AutoFillView.js.map +1 -0
- package/lib/module/BetRouter/components/admin/ConfigManager.js +806 -0
- package/lib/module/BetRouter/components/admin/ConfigManager.js.map +1 -0
- package/lib/module/BetRouter/components/admin/JobManager.js +888 -0
- package/lib/module/BetRouter/components/admin/JobManager.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueContests.js +2836 -0
- package/lib/module/BetRouter/components/admin/LeagueContests.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueInfo.js +372 -0
- package/lib/module/BetRouter/components/admin/LeagueInfo.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueParticipants.js +787 -0
- package/lib/module/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
- package/lib/module/BetRouter/index.js +399 -0
- package/lib/module/BetRouter/index.js.map +1 -0
- package/lib/module/BetRouter/layouts/DesktopAdminLayout.js +304 -0
- package/lib/module/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/DesktopLayout.js +263 -0
- package/lib/module/BetRouter/layouts/DesktopLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/MobileAdminLayout.js +427 -0
- package/lib/module/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/MobileLayout.js +285 -0
- package/lib/module/BetRouter/layouts/MobileLayout.js.map +1 -0
- package/lib/module/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/lib/module/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/lib/module/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/lib/module/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/lib/module/BetRouter/types/README.md +249 -0
- package/lib/module/BetRouter/types/accounts.js +2 -0
- package/lib/module/BetRouter/types/accounts.js.map +1 -0
- package/lib/module/BetRouter/types/api-contracts.js +770 -0
- package/lib/module/BetRouter/types/api-contracts.js.map +1 -0
- package/lib/module/BetRouter/types/config.js +2 -0
- package/lib/module/BetRouter/types/config.js.map +1 -0
- package/lib/module/BetRouter/types/contests.js +2 -0
- package/lib/module/BetRouter/types/contests.js.map +1 -0
- package/lib/module/BetRouter/types/credentials.js +78 -0
- package/lib/module/BetRouter/types/credentials.js.map +1 -0
- package/lib/module/BetRouter/types/index.js +17 -0
- package/lib/module/BetRouter/types/index.js.map +1 -0
- package/lib/module/BetRouter/types/jobs.js +2 -0
- package/lib/module/BetRouter/types/jobs.js.map +1 -0
- package/lib/module/BetRouter/types/leagues.js +2 -0
- package/lib/module/BetRouter/types/leagues.js.map +1 -0
- package/lib/module/BetRouter/types/liquidity.js +2 -0
- package/lib/module/BetRouter/types/liquidity.js.map +1 -0
- package/lib/module/BetRouter/types/markets.js +2 -0
- package/lib/module/BetRouter/types/markets.js.map +1 -0
- package/lib/module/BetRouter/types/opportunities.js +2 -0
- package/lib/module/BetRouter/types/opportunities.js.map +1 -0
- package/lib/module/BetRouter/types/orders.js +2 -0
- package/lib/module/BetRouter/types/orders.js.map +1 -0
- package/lib/module/BetRouter/types/participants.js +2 -0
- package/lib/module/BetRouter/types/participants.js.map +1 -0
- package/lib/module/BetRouter/types/partners.js +2 -0
- package/lib/module/BetRouter/types/partners.js.map +1 -0
- package/lib/module/Charts/README.md +310 -0
- package/lib/module/Charts/adapters/TradeChartAdapter.js +400 -0
- package/lib/module/Charts/adapters/TradeChartAdapter.js.map +1 -0
- package/lib/module/Charts/components/BaseLineChart.js +281 -0
- package/lib/module/Charts/components/BaseLineChart.js.map +1 -0
- package/lib/module/Charts/components/LivePriceChart.js +497 -0
- package/lib/module/Charts/components/LivePriceChart.js.map +1 -0
- package/lib/module/Charts/index.js +36 -0
- package/lib/module/Charts/index.js.map +1 -0
- package/lib/module/Charts/themes/chartTheme.js +134 -0
- package/lib/module/Charts/themes/chartTheme.js.map +1 -0
- package/lib/module/Charts/types.js +2 -0
- package/lib/module/Charts/types.js.map +1 -0
- package/lib/module/Charts/utils/formatters.js +178 -0
- package/lib/module/Charts/utils/formatters.js.map +1 -0
- package/lib/module/Components/Dropdown.js +5 -3
- package/lib/module/Components/Dropdown.js.map +1 -1
- package/lib/module/Components/Icons.js +24 -1
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/index.js +3 -0
- package/lib/module/Components/index.js.map +1 -1
- package/lib/module/LocationTracker/LocationStatus.js +5 -2
- package/lib/module/LocationTracker/LocationStatus.js.map +1 -1
- package/lib/module/LocationTracker/api/index.js +2 -2
- package/lib/module/LocationTracker/api/index.js.map +1 -1
- package/lib/module/index.js +5 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.d.js +16 -0
- package/lib/module/types.d.js.map +1 -1
- package/lib/typescript/lib/commonjs/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts +109 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts +16 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts +16 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts +8 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts +14 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts +10 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts +7 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/index.d.ts +8 -0
- package/lib/typescript/lib/commonjs/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts +20 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts +20 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts +743 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts +56 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts +87 -0
- package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts +31 -0
- package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts +45 -0
- package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/index.d.ts +95 -0
- package/lib/typescript/lib/commonjs/Charts/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts +106 -0
- package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/Charts/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts +24 -0
- package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/lib/commonjs/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +6 -1
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetRouter/api/index.d.ts +108 -0
- package/lib/typescript/lib/module/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts +16 -0
- package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts +16 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts +8 -0
- package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts +15 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts +12 -0
- package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/index.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts +20 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts +20 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts +742 -0
- package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/config.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/contests.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts +55 -0
- package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/index.d.ts +14 -0
- package/lib/typescript/lib/module/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/markets.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/orders.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/participants.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/partners.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts +81 -0
- package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts +31 -0
- package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts +41 -0
- package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/index.d.ts +6 -0
- package/lib/typescript/lib/module/Charts/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts +102 -0
- package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/types.d.ts +2 -0
- package/lib/typescript/lib/module/Charts/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/utils/formatters.d.ts +14 -0
- package/lib/typescript/lib/module/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/index.d.ts +1 -0
- package/lib/typescript/lib/module/Components/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/lib/module/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/LocationTracker/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/index.d.ts +3 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/BetRouter/api/index.d.ts +115 -0
- package/lib/typescript/src/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/src/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/AccountManager.d.ts +18 -0
- package/lib/typescript/src/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts +15 -0
- package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts +24 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts +19 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts +15 -0
- package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts +13 -0
- package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts +16 -0
- package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts +21 -0
- package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts +20 -0
- package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts +12 -0
- package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts +18 -0
- package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts +9 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts +8 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/index.d.ts +16 -0
- package/lib/typescript/src/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts +15 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts +44 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts +15 -0
- package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts +44 -0
- package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/accounts.d.ts +19 -0
- package/lib/typescript/src/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/api-contracts.d.ts +1071 -0
- package/lib/typescript/src/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/config.d.ts +12 -0
- package/lib/typescript/src/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/contests.d.ts +34 -0
- package/lib/typescript/src/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/credentials.d.ts +24 -0
- package/lib/typescript/src/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/index.d.ts +14 -0
- package/lib/typescript/src/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/jobs.d.ts +35 -0
- package/lib/typescript/src/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/leagues.d.ts +26 -0
- package/lib/typescript/src/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/liquidity.d.ts +14 -0
- package/lib/typescript/src/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/markets.d.ts +87 -0
- package/lib/typescript/src/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/opportunities.d.ts +88 -0
- package/lib/typescript/src/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/orders.d.ts +34 -0
- package/lib/typescript/src/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/participants.d.ts +33 -0
- package/lib/typescript/src/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/partners.d.ts +11 -0
- package/lib/typescript/src/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts +117 -0
- package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/src/Charts/components/BaseLineChart.d.ts +40 -0
- package/lib/typescript/src/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/src/Charts/components/LivePriceChart.d.ts +13 -0
- package/lib/typescript/src/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/src/Charts/index.d.ts +28 -0
- package/lib/typescript/src/Charts/index.d.ts.map +1 -0
- package/lib/typescript/src/Charts/themes/chartTheme.d.ts +78 -0
- package/lib/typescript/src/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/src/Charts/types.d.ts +155 -0
- package/lib/typescript/src/Charts/types.d.ts.map +1 -0
- package/lib/typescript/src/Charts/utils/formatters.d.ts +66 -0
- package/lib/typescript/src/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/src/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/index.d.ts +1 -0
- package/lib/typescript/src/Components/index.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts +3 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +4 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/ApiOverrides/index.ts +4 -0
- package/src/BetRouter/api/index.ts +854 -0
- package/src/BetRouter/api/types.ts +0 -0
- package/src/BetRouter/components/AccountManager.tsx +533 -0
- package/src/BetRouter/components/AdminPortal.tsx +44 -0
- package/src/BetRouter/components/BuyOpportunities.tsx +491 -0
- package/src/BetRouter/components/BuyOpportunityCard.tsx +331 -0
- package/src/BetRouter/components/ContestLiquidity.tsx +613 -0
- package/src/BetRouter/components/ContestSelector.tsx +179 -0
- package/src/BetRouter/components/MyOpportunities.tsx +279 -0
- package/src/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/src/BetRouter/components/OpportunityDetailModal.tsx +360 -0
- package/src/BetRouter/components/OpportunityHistory.tsx +408 -0
- package/src/BetRouter/components/PartnerCredentials.tsx +212 -0
- package/src/BetRouter/components/PlacedOpportunityModal.tsx +192 -0
- package/src/BetRouter/components/admin/AutoFillView.tsx +275 -0
- package/src/BetRouter/components/admin/ConfigManager.tsx +596 -0
- package/src/BetRouter/components/admin/JobManager.tsx +758 -0
- package/src/BetRouter/components/admin/LeagueContests.tsx +2443 -0
- package/src/BetRouter/components/admin/LeagueInfo.tsx +253 -0
- package/src/BetRouter/components/admin/LeagueParticipants.tsx +662 -0
- package/src/BetRouter/index.tsx +453 -0
- package/src/BetRouter/layouts/DesktopAdminLayout.tsx +348 -0
- package/src/BetRouter/layouts/DesktopLayout.tsx +292 -0
- package/src/BetRouter/layouts/MobileAdminLayout.tsx +387 -0
- package/src/BetRouter/layouts/MobileLayout.tsx +325 -0
- package/src/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/src/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/src/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/src/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/src/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/src/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/src/BetRouter/types/README.md +249 -0
- package/src/BetRouter/types/accounts.ts +21 -0
- package/src/BetRouter/types/api-contracts.ts +1164 -0
- package/src/BetRouter/types/config.ts +12 -0
- package/src/BetRouter/types/contests.ts +37 -0
- package/src/BetRouter/types/credentials.ts +99 -0
- package/src/BetRouter/types/index.ts +16 -0
- package/src/BetRouter/types/jobs.ts +37 -0
- package/src/BetRouter/types/leagues.ts +29 -0
- package/src/BetRouter/types/liquidity.ts +15 -0
- package/src/BetRouter/types/markets.ts +94 -0
- package/src/BetRouter/types/opportunities.ts +107 -0
- package/src/BetRouter/types/orders.ts +51 -0
- package/src/BetRouter/types/participants.ts +34 -0
- package/src/BetRouter/types/partners.ts +10 -0
- package/src/Charts/README.md +310 -0
- package/src/Charts/adapters/TradeChartAdapter.ts +471 -0
- package/src/Charts/components/BaseLineChart.tsx +293 -0
- package/src/Charts/components/LivePriceChart.tsx +521 -0
- package/src/Charts/index.tsx +62 -0
- package/src/Charts/themes/chartTheme.ts +113 -0
- package/src/Charts/types.ts +160 -0
- package/src/Charts/utils/formatters.ts +182 -0
- package/src/Components/Dropdown.tsx +6 -3
- package/src/Components/Icons.tsx +12 -0
- package/src/Components/index.tsx +4 -0
- package/src/LocationTracker/LocationStatus.tsx +4 -3
- package/src/LocationTracker/api/index.tsx +2 -2
- package/src/index.tsx +6 -0
- package/src/types.d.ts +410 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration types for API contracts
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export interface ConfigProps {
|
|
6
|
+
config_id: string;
|
|
7
|
+
config: string; // Config key (e.g., 'MAX_BET_AMOUNT', 'MAX_FILL_AMOUNT')
|
|
8
|
+
value: string; // String representation of the value
|
|
9
|
+
config_format: 'string' | 'number' | 'boolean' | 'json'; // Format type
|
|
10
|
+
create_datetime: any; // Datetime when config was created
|
|
11
|
+
last_update_datetime: any; // Datetime when config was last updated
|
|
12
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Contest Types
|
|
2
|
+
|
|
3
|
+
export interface RouterContestProps {
|
|
4
|
+
router_contest_id: string
|
|
5
|
+
router_league_id: string // FK
|
|
6
|
+
contest_id: string // BettorEdge Source
|
|
7
|
+
contest_label: string // Human readable label
|
|
8
|
+
contest_type: 'team' | 'tournament' | 'match' // BettorEdge Source
|
|
9
|
+
scheduled_datetime: any
|
|
10
|
+
status: 'open' | 'closed' | 'settled'
|
|
11
|
+
auto_fill?: boolean // Enable/disable auto-fill liquidity for this contest
|
|
12
|
+
tags?: Record<string, any> // JSONB metadata for auto-linking (away_team, home_team, etc.)
|
|
13
|
+
create_datetime: any
|
|
14
|
+
last_update_datetime: any
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PartnerContestProps {
|
|
18
|
+
partner_contest_id: string
|
|
19
|
+
raw_contest_id: string // FK → raw_contest
|
|
20
|
+
router_contest_id: string // FK → router_contest
|
|
21
|
+
partner_id: string // FK → router_partner (denormalized from raw_contest for convenience)
|
|
22
|
+
external_id: string // Denormalized from raw_contest for convenience
|
|
23
|
+
create_datetime: any
|
|
24
|
+
last_update_datetime: any
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface RawContestProps {
|
|
28
|
+
raw_contest_id: string
|
|
29
|
+
partner_id: string // FK
|
|
30
|
+
router_league_id: string // FK
|
|
31
|
+
pretty_title: string
|
|
32
|
+
scheduled_datetime: string
|
|
33
|
+
external_id: string
|
|
34
|
+
status: 'active' | 'closed'
|
|
35
|
+
create_datetime: any
|
|
36
|
+
last_update_datetime: any
|
|
37
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// Partner Credential Types
|
|
2
|
+
// These define what inputs are needed for each partner
|
|
3
|
+
|
|
4
|
+
export interface KalshiCredentialProps {
|
|
5
|
+
api_key: string
|
|
6
|
+
private_key_pem: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface BettorEdgeCredentialProps {
|
|
10
|
+
username: string
|
|
11
|
+
password: string
|
|
12
|
+
access_token?: string // We will store the bearer token here
|
|
13
|
+
refresh_token?: string // Store the refresh token here
|
|
14
|
+
expire_datetime?: any // timestamp with timezone
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface BetOpenlyCredentialProps {
|
|
18
|
+
user_id: string
|
|
19
|
+
username: string
|
|
20
|
+
password: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Union type of all possible credentials
|
|
24
|
+
export type PartnerCredentialProps = KalshiCredentialProps | BettorEdgeCredentialProps | BetOpenlyCredentialProps
|
|
25
|
+
|
|
26
|
+
// Type guard helpers for client to determine which credential type is needed
|
|
27
|
+
export const isKalshiCredentials = (creds: any): creds is KalshiCredentialProps => {
|
|
28
|
+
return 'api_key' in creds && 'private_key_pem' in creds
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const isBettorEdgeCredentials = (creds: any): creds is BettorEdgeCredentialProps => {
|
|
32
|
+
return 'username' in creds && 'password' in creds && 'device_id' in creds
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const isBetOpenlyCredentials = (creds: any): creds is BetOpenlyCredentialProps => {
|
|
36
|
+
return 'username' in creds && 'password' in creds && !('device_id' in creds)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Helper to get required fields for a partner by name
|
|
40
|
+
export const getRequiredCredentialFields = (partnerName: string): string[] => {
|
|
41
|
+
switch (partnerName) {
|
|
42
|
+
case 'Kalshi':
|
|
43
|
+
return ['api_key', 'private_key_pem']
|
|
44
|
+
case 'BettorEdge':
|
|
45
|
+
return ['username', 'password']
|
|
46
|
+
case 'BetOpenly':
|
|
47
|
+
return ['user_id','username', 'password']
|
|
48
|
+
default:
|
|
49
|
+
return []
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Helper to get credential field labels for UI
|
|
54
|
+
export const getCredentialFieldLabels = (partnerName: string): Record<string, string> => {
|
|
55
|
+
switch (partnerName) {
|
|
56
|
+
case 'Kalshi':
|
|
57
|
+
return {
|
|
58
|
+
api_key: 'API Key',
|
|
59
|
+
private_key_pem: 'Private Key (PEM format)'
|
|
60
|
+
}
|
|
61
|
+
case 'BettorEdge':
|
|
62
|
+
return {
|
|
63
|
+
username: 'Username',
|
|
64
|
+
password: 'Password'
|
|
65
|
+
}
|
|
66
|
+
case 'BetOpenly':
|
|
67
|
+
return {
|
|
68
|
+
username: 'Username',
|
|
69
|
+
password: 'Password',
|
|
70
|
+
user_id: 'User Id'
|
|
71
|
+
}
|
|
72
|
+
default:
|
|
73
|
+
return {}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Helper to get credential field types for UI
|
|
78
|
+
export const getCredentialFieldTypes = (partnerName: string): Record<string, 'text' | 'password' | 'textarea'> => {
|
|
79
|
+
switch (partnerName) {
|
|
80
|
+
case 'Kalshi':
|
|
81
|
+
return {
|
|
82
|
+
api_key: 'text',
|
|
83
|
+
private_key_pem: 'textarea'
|
|
84
|
+
}
|
|
85
|
+
case 'BettorEdge':
|
|
86
|
+
return {
|
|
87
|
+
username: 'text',
|
|
88
|
+
password: 'password',
|
|
89
|
+
}
|
|
90
|
+
case 'BetOpenly':
|
|
91
|
+
return {
|
|
92
|
+
user_id: 'text',
|
|
93
|
+
username: 'text',
|
|
94
|
+
password: 'password'
|
|
95
|
+
}
|
|
96
|
+
default:
|
|
97
|
+
return {}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Main exports - Single source of truth for all types
|
|
2
|
+
// Copy this entire folder to your client project
|
|
3
|
+
|
|
4
|
+
export * from './opportunities';
|
|
5
|
+
export * from './orders';
|
|
6
|
+
export * from './accounts';
|
|
7
|
+
export * from './partners';
|
|
8
|
+
export * from './leagues';
|
|
9
|
+
export * from './contests';
|
|
10
|
+
export * from './participants';
|
|
11
|
+
export * from './markets';
|
|
12
|
+
export * from './liquidity';
|
|
13
|
+
export * from './credentials';
|
|
14
|
+
export * from './config';
|
|
15
|
+
export * from './jobs';
|
|
16
|
+
export * from './api-contracts';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The betrouter system will have a series of the jobs that need to be run to keep everything up to date.
|
|
3
|
+
*/
|
|
4
|
+
export interface RouterJobProps {
|
|
5
|
+
router_job_id:string //PK
|
|
6
|
+
job_key:string, //Unique key for the job - this will be unique per job
|
|
7
|
+
name: string//Pretty label of the job
|
|
8
|
+
description: string //Description for the admin to understand the job they are kicking off
|
|
9
|
+
frequency: number //Frequency number depending on the frequency type. For example a frequency of 1 and frequency type of day. Then this should run once every day
|
|
10
|
+
frequency_type: 'seconds'|'minutes'|'hours'|'days'
|
|
11
|
+
status: 'active'|'inactive' //Whether the job should be run by the worker. Defaults to 'inactive'
|
|
12
|
+
last_success_datetime:any //timestamp with timezone of the last time it was run successfully
|
|
13
|
+
create_datetime:any //timestamp with timezone
|
|
14
|
+
last_update_datetime: any //timestamp with timezone
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ParentJobPriorityProps {
|
|
18
|
+
parent_job_priority_id:string //PK
|
|
19
|
+
parent_job_key: string //Job key of the parent job
|
|
20
|
+
priority: number //This is used to synchornize child jobs in a specific order
|
|
21
|
+
child_job_key:string //Child job to be run at that priority
|
|
22
|
+
create_datetime:any //timestampt with timezone
|
|
23
|
+
last_update_datetime:any //timestamp with timezone
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface RouterJobStatusProps {
|
|
27
|
+
job_status_id:string, //Primary Key
|
|
28
|
+
router_job_id:string, //FK to the router_job
|
|
29
|
+
|
|
30
|
+
scheduled_datetime?:any //If scheduled for the future, timestamp with timezone of when it will kick off
|
|
31
|
+
start_datetime:any //timestamp with timezone when the job kicks off
|
|
32
|
+
end_datetime:any //timestamp with timezone when the job ends
|
|
33
|
+
create_datetime:any //timestamp with timezone - creation of the record
|
|
34
|
+
last_update_datetime:any //timestamp with timezone - update record
|
|
35
|
+
parent_job_id?:string //FK to itself. So we may have an overall job that runs a series of child jobs. If this is a child job - it will reference the parent router_job_id
|
|
36
|
+
status: 'scheduled'|'inprogress'|'failed'|'success' //Status of the job. If a parent job - if any child job fails, this will be failed. All child jobs succeed - then success
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// League Types
|
|
2
|
+
|
|
3
|
+
export interface RouterLeagueProps {
|
|
4
|
+
router_league_id: string // PK
|
|
5
|
+
name: string // e.g., MLB, NBA, NFL
|
|
6
|
+
status: 'active' | 'inactive'
|
|
7
|
+
create_datetime: any
|
|
8
|
+
last_update_datetime: any
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface PartnerLeagueProps {
|
|
12
|
+
partner_league_id: string // PK
|
|
13
|
+
raw_league_id: string // FK → raw_league
|
|
14
|
+
router_league_id: string // FK → router_league
|
|
15
|
+
partner_id: string // FK → router_partner (denormalized from raw_league for convenience)
|
|
16
|
+
external_id: string // Denormalized from raw_league for convenience
|
|
17
|
+
create_datetime: any
|
|
18
|
+
last_update_datetime: any
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface RawLeagueProps {
|
|
22
|
+
raw_league_id: string
|
|
23
|
+
partner_id: string
|
|
24
|
+
name: string
|
|
25
|
+
external_id: string
|
|
26
|
+
status: 'active' | 'inactive'
|
|
27
|
+
create_datetime: any
|
|
28
|
+
last_update_datetime: any
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Liquidity Types
|
|
2
|
+
|
|
3
|
+
export interface RouterLiquidityProps {
|
|
4
|
+
router_liquidity_id: string // PK
|
|
5
|
+
liquidity_hash: string // Hash identifier: partner_id:router_contest_id:router_market_id:market_side_id:market_variable_id:participant_id:timeframe_id
|
|
6
|
+
router_contest_id: string // FK -contest
|
|
7
|
+
title:string,
|
|
8
|
+
partner_market_id: string // FK - market id -- can eventually crawl this all the way up to the partner
|
|
9
|
+
price: number // This is the cheapest probability of the bet
|
|
10
|
+
available: number // This is the amount of liquidity available at that price
|
|
11
|
+
expire_datetime: any // Moment
|
|
12
|
+
create_datetime: any // MOMENT
|
|
13
|
+
buy_id?: string
|
|
14
|
+
last_update_datetime: any // MOMENT
|
|
15
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Market Types
|
|
2
|
+
|
|
3
|
+
export interface RouterMarketOptions {
|
|
4
|
+
auto_support_team_contests?: boolean // If true, automatically create market_contests for team-type contests
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface RouterMarketProps {
|
|
8
|
+
router_market_id: string // PK
|
|
9
|
+
market_key: string // Unique key: "moneyline", "spread", "player_points", "team_total"
|
|
10
|
+
market_label: string // Human readable: "Moneyline", "Spread", "Player Points"
|
|
11
|
+
market_description: string // Longer description
|
|
12
|
+
category: 'game_result' | 'team_stat' | 'player_stat' | 'game_stat' // What category
|
|
13
|
+
variable_required: boolean // Does it need a line/spread/total?
|
|
14
|
+
default_variable_type: 'total' | 'spread' // Default type for variables in this market
|
|
15
|
+
allow_multiple_participants: boolean // Can multiple participants be linked to this market? (e.g., props)
|
|
16
|
+
participant_type: 'team' | 'player' | 'event' // What type of participant (always required)
|
|
17
|
+
options?: RouterMarketOptions // Configuration options for this market
|
|
18
|
+
status: 'active' | 'inactive'
|
|
19
|
+
create_datetime: any
|
|
20
|
+
last_update_datetime: any
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface RawMarketProps {
|
|
24
|
+
raw_market_id: string // PK
|
|
25
|
+
partner_id: string // FK
|
|
26
|
+
partner_contest_id: string // FK to partner contest
|
|
27
|
+
external_id: string // Partner's market ID
|
|
28
|
+
pretty_title: string // Human readable title
|
|
29
|
+
status: 'active' | 'closed'
|
|
30
|
+
create_datetime: any
|
|
31
|
+
last_update_datetime: any
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Defines which router_markets are ALLOWED/SUPPORTED for a given router_contest
|
|
36
|
+
*
|
|
37
|
+
* This is NOT a link between abstract market types and specific games,
|
|
38
|
+
* but rather a whitelist of which market types can be mapped for a contest.
|
|
39
|
+
*
|
|
40
|
+
* Purpose: Not all markets make sense for all contests/sports
|
|
41
|
+
*
|
|
42
|
+
* Examples:
|
|
43
|
+
* - Baseball contests allow: Winner, Spread, Total Runs
|
|
44
|
+
* - Baseball contests DON'T allow: Total Rebounds (that's a basketball market!)
|
|
45
|
+
* - Basketball contests allow: Winner, Spread, Total Points, Total Rebounds
|
|
46
|
+
* - Basketball contests DON'T allow: Total Goals (that's a hockey market!)
|
|
47
|
+
*
|
|
48
|
+
* Usage: Before creating a partner_market, check if that router_market
|
|
49
|
+
* is allowed for the router_contest via this table.
|
|
50
|
+
*/
|
|
51
|
+
export interface MarketContestProps {
|
|
52
|
+
market_contest_id: string // PK
|
|
53
|
+
router_contest_id: string // FK - Which contest
|
|
54
|
+
router_market_id: string // FK - Which market TYPE is allowed for this contest
|
|
55
|
+
status: 'open' | 'closed' // Is this market currently accepting bets for this contest?
|
|
56
|
+
auto_fill?: boolean // Enable/disable auto-fill liquidity for this market in this contest
|
|
57
|
+
create_datetime: any
|
|
58
|
+
last_update_datetime: any
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface RouterMarketVariableProps {
|
|
62
|
+
router_market_variable_id: string
|
|
63
|
+
router_market_id: string // FK
|
|
64
|
+
variable: number // I.e., if this is a spread it might by -4 or 5. If total it is 35 or 54.5, etc
|
|
65
|
+
variable_type: 'total' | 'spread' // Total or spread
|
|
66
|
+
create_datetime: any
|
|
67
|
+
last_update_datetime: any // All dates will be MOMENT objects eventually
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface RouterMarketSideProps {
|
|
71
|
+
market_side_id: string
|
|
72
|
+
router_market_id: string
|
|
73
|
+
side_type: string // team | athlete | side
|
|
74
|
+
side_key: string // Over under, home, away, etc
|
|
75
|
+
renderer: string // Template for rendering titles: "{participant.name} to win {timeframe.label}"
|
|
76
|
+
create_datetime: any
|
|
77
|
+
last_update_datetime: any
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface PartnerMarketProps {
|
|
81
|
+
partner_market_id: string
|
|
82
|
+
raw_market_id: string // FK - Links to the event-specific raw market
|
|
83
|
+
router_contest_id: string // FK - Denormalized link to router contest (for performance)
|
|
84
|
+
router_market_variable_id: string // FK - RouterMarketVariable_id
|
|
85
|
+
partner_id: string // Foreign key - BettorEdge Company_id
|
|
86
|
+
router_market_id: string // Foreign Key - routermarketprops
|
|
87
|
+
market_side_id: string // Foreign key to the side of a market (i.e., option)
|
|
88
|
+
partner_participant_id: string // FK - Links to PartnerParticipantProps (which links to router participant)
|
|
89
|
+
timeframe_id: string // FK - Links to RouterTimeframeProps (full event, quarter, half, etc.)
|
|
90
|
+
external_id: string
|
|
91
|
+
price_key?: string // For Kalshi: 'yes' or 'no' to indicate which price to use
|
|
92
|
+
create_datetime: any
|
|
93
|
+
last_update_datetime: any
|
|
94
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Opportunity Types
|
|
2
|
+
|
|
3
|
+
import type { PartnerMarketProps } from './markets'
|
|
4
|
+
import type { RouterLiquidityProps } from './liquidity'
|
|
5
|
+
|
|
6
|
+
export interface OpportunityLeg {
|
|
7
|
+
leg_number: number
|
|
8
|
+
partner_id: string
|
|
9
|
+
partner_market: PartnerMarketProps
|
|
10
|
+
market_side_id: string
|
|
11
|
+
liquidity: RouterLiquidityProps
|
|
12
|
+
liquidity_hash: string
|
|
13
|
+
buy_id?: string
|
|
14
|
+
title: string // Pretty title from liquidity (e.g., "Baltimore Ravens -7.5")
|
|
15
|
+
price: number
|
|
16
|
+
bet_amount: number
|
|
17
|
+
potential_payout: number
|
|
18
|
+
fee: number
|
|
19
|
+
router_market_variable_id: string
|
|
20
|
+
line?: number // The variable value (e.g., -3.5) for middles
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface BuyOpportunity {
|
|
24
|
+
opportunity_id: string
|
|
25
|
+
opportunity_type: 'arbitrage' | 'middle' | 'reverse_middle' | 'auto_arbitrage'
|
|
26
|
+
router_contest_id: string
|
|
27
|
+
router_market_id: string
|
|
28
|
+
|
|
29
|
+
// Legs array instead of _1, _2 suffixes
|
|
30
|
+
legs: OpportunityLeg[]
|
|
31
|
+
|
|
32
|
+
// Overall opportunity metrics
|
|
33
|
+
total_price: number
|
|
34
|
+
price_difference: number // How much below 1.0 (e.g., 0.05 means 5% arbitrage)
|
|
35
|
+
guaranteed_profit: number // Minimum profit across both outcomes
|
|
36
|
+
roi: number // Return on investment as percentage
|
|
37
|
+
opportunity_with_fee: boolean // Whether opportunity still profitable after fees
|
|
38
|
+
|
|
39
|
+
// Common fields for all opportunity types
|
|
40
|
+
investment: number // Total money put down (sum of all leg bet_amounts)
|
|
41
|
+
total_potential_winnings: number // Maximum amount we could win (payout when we win)
|
|
42
|
+
at_risk: number // Absolute amount we could lose
|
|
43
|
+
win_probability: number // Probability of winning the total_potential_winnings
|
|
44
|
+
loss_probability: number // Probability that at_risk is lost
|
|
45
|
+
total_fees: number // Sum of all fees
|
|
46
|
+
expected_profit: number // Expected profit BEFORE fees
|
|
47
|
+
expected_value: number // Expected profit AFTER fees
|
|
48
|
+
|
|
49
|
+
// Middle-specific fields
|
|
50
|
+
middle_range_start?: number // Start of double-win window
|
|
51
|
+
middle_range_end?: number // End of double-win window
|
|
52
|
+
|
|
53
|
+
// Consensus data (when available)
|
|
54
|
+
consensus_home_spread?: number // e.g., -7
|
|
55
|
+
consensus_away_spread?: number // e.g., +7
|
|
56
|
+
|
|
57
|
+
// Human-readable description
|
|
58
|
+
human_readable_description?: string // User-friendly explanation of the opportunity
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface OpportunityProps {
|
|
62
|
+
opportunity_id: string // PK - From BuyOpportunity - for grouping related attempts
|
|
63
|
+
router_account_id: string // FK - Which account is taking this opportunity
|
|
64
|
+
opportunity_type: BuyOpportunity['opportunity_type'] // arbitrage | middle | reverse_middle
|
|
65
|
+
router_contest_id: string // FK
|
|
66
|
+
expected_profit: number
|
|
67
|
+
expected_roi: number
|
|
68
|
+
total_bet_amount: number
|
|
69
|
+
total_winnings: number // Sum of all order winnings
|
|
70
|
+
total_net_winnings: number // Sum of all order net_winnings
|
|
71
|
+
total_fees: number // Sum of all order fees
|
|
72
|
+
actual_profit?: number // Actual profit once opportunity is closed
|
|
73
|
+
actual_roi: number // Actual ROI once opportunity is closed
|
|
74
|
+
fill_status: 'pending' | 'all_filled' | 'partially_filled' | 'failed' // Status of order placement
|
|
75
|
+
status: 'open' | 'closed' // Overall status: open while any order is open, closed when all orders closed or fill failed
|
|
76
|
+
create_datetime: any
|
|
77
|
+
completed_datetime?: any
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
//Summary of multiple opportunities
|
|
81
|
+
export interface OpportunitySummaryProps {
|
|
82
|
+
opportunity_type: OpportunityProps['opportunity_type'],
|
|
83
|
+
total_bet_amount: number,
|
|
84
|
+
total_winnings: number,
|
|
85
|
+
opportunity_count: number //Count of opportunities included in this
|
|
86
|
+
total_net_winnings: number,
|
|
87
|
+
total_fees: number,
|
|
88
|
+
actual_profit: number,
|
|
89
|
+
to: number, //UNIX timestamp
|
|
90
|
+
from: number //UNIX timestamp
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface OpportunityStatusLegProps {
|
|
94
|
+
opportunity_status_leg_id: string // PK
|
|
95
|
+
opportunity_id: string // FK - references opportunities table
|
|
96
|
+
leg_number: number // 1, 2, 3, etc.
|
|
97
|
+
liquidity_hash: string
|
|
98
|
+
partner_id: string
|
|
99
|
+
partner_market_id: string
|
|
100
|
+
expected_amount: number
|
|
101
|
+
expected_price: number
|
|
102
|
+
status: 'pending' | 'success' | 'failed'
|
|
103
|
+
router_order_id?: string // FK - null until order placed
|
|
104
|
+
error_message?: string
|
|
105
|
+
create_datetime: any
|
|
106
|
+
last_update_datetime: any
|
|
107
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Order Types
|
|
2
|
+
|
|
3
|
+
export interface RouterOrderProps {
|
|
4
|
+
router_order_id: string // Primary key
|
|
5
|
+
router_account_id: string // FK - Which account placed this order
|
|
6
|
+
account_partner_id: string // FK - Associated with the partner_id
|
|
7
|
+
partner_id: string // FK - Denormalized for easier queries
|
|
8
|
+
|
|
9
|
+
// Contest/Market References
|
|
10
|
+
router_contest_id: string // FK - Which contest
|
|
11
|
+
router_market_id: string // FK - Which market
|
|
12
|
+
partner_market_id: string // FK - Partner's market
|
|
13
|
+
|
|
14
|
+
// Order Details
|
|
15
|
+
title: string // Pretty title (i.e., "Minnesota to win", "Los Angeles to win")
|
|
16
|
+
external_id: string // Partner platform order ID - used to get status from partner
|
|
17
|
+
side: string // Which side/outcome (e.g., "home", "away", "yes", "no")
|
|
18
|
+
|
|
19
|
+
// Opportunity Tracking
|
|
20
|
+
liquidity_hash: string // Hash of liquidity - can recalculate opportunity to test performance
|
|
21
|
+
opportunity_type: 'arbitrage' | 'middle' | 'reverse_middle' | 'auto_arbitrage'
|
|
22
|
+
opportunity_id: string // The generated opportunity_id that this order is part of
|
|
23
|
+
leg_number: number // Which leg of the opportunity (1 or 2)
|
|
24
|
+
model_id?: string // FK - For model performance tracking in the future
|
|
25
|
+
|
|
26
|
+
// Financial
|
|
27
|
+
amount: number // Bet amount
|
|
28
|
+
amount_with_fee: number // Bet amount plus fee (total cost)
|
|
29
|
+
price: number // Price/odds at placement (e.g., 0.55)
|
|
30
|
+
fee: number // Fee charged by partner
|
|
31
|
+
winnings: number // Gross winnings before fees
|
|
32
|
+
potential_payout: number //Potential payout using amount and price
|
|
33
|
+
net_winnings: number // Net profit/loss after fees
|
|
34
|
+
roi: number // Return on investment percentage
|
|
35
|
+
|
|
36
|
+
// Status & Results
|
|
37
|
+
status: 'open' | 'closed' // Simple status: open when active, closed when settled/cancelled/failed
|
|
38
|
+
partner_order_status?: string // Raw status from partner API for granular tracking
|
|
39
|
+
result?: 'win' | 'lose' | 'push' | 'cancelled' // Final result after settlement
|
|
40
|
+
|
|
41
|
+
// Partner Data
|
|
42
|
+
payload?: any // Raw partner order object for debugging and investigation
|
|
43
|
+
|
|
44
|
+
// Settlement
|
|
45
|
+
settled_datetime?: any // Timestamp when the order was settled
|
|
46
|
+
|
|
47
|
+
// Timestamps
|
|
48
|
+
create_datetime: any // When order record was created
|
|
49
|
+
placed_datetime?: any // When order was actually placed with partner
|
|
50
|
+
last_update_datetime: any // Last updated
|
|
51
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface RouterParticipantProps {
|
|
2
|
+
participant_id: string // PK
|
|
3
|
+
router_league_id: string // FK - which league/sport this participant belongs to (e.g., Washington in NFL vs NBA)
|
|
4
|
+
participant_type: 'team' | 'athlete' | 'event'
|
|
5
|
+
bettoredge_id: string // BettorEdge ID - athlete_id or team_id (source of truth)
|
|
6
|
+
name: string // Canonical name (i.e., LeBron James, LA Lakers, Event Total)
|
|
7
|
+
tags: string[] // All name variations for matching (LeBron James, Lebron, LBJ, etc.)
|
|
8
|
+
status: 'active' | 'inactive'
|
|
9
|
+
create_datetime: any // Moment - timestamp with timezone in pg
|
|
10
|
+
last_update_datetime: any // Moment - timestamp with timezone in pg
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface RawParticipantProps {
|
|
14
|
+
raw_participant_id: string // PK
|
|
15
|
+
partner_id: string // FK - which partner this came from
|
|
16
|
+
router_league_id: string // FK - which league/sport this participant belongs to
|
|
17
|
+
external_id: string // Partner's participant ID (e.g., BettorEdge player ID, Kalshi team ID)
|
|
18
|
+
name: string // As named by partner
|
|
19
|
+
participant_type: 'team' | 'athlete' | 'event'
|
|
20
|
+
metadata?: Record<string, any> // Partner-specific data (stats, IDs, etc.)
|
|
21
|
+
status: 'active' | 'inactive'
|
|
22
|
+
create_datetime: any
|
|
23
|
+
last_update_datetime: any
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface PartnerParticipantProps {
|
|
27
|
+
partner_participant_id: string // PK
|
|
28
|
+
partner_id: string // FK - denormalized for queries
|
|
29
|
+
raw_participant_id: string // FK - links to raw participant
|
|
30
|
+
router_participant_id: string // FK - links to router participant (canonical)
|
|
31
|
+
external_id: string // Partner's participant ID (denormalized)
|
|
32
|
+
create_datetime: any
|
|
33
|
+
last_update_datetime: any
|
|
34
|
+
}
|