API 对接文档
  1. BI
API 对接文档
  • Shopping
    • Return list of Flight Offers based on posted searching criteria.
      POST
    • Return list of Flight Offers based on searching criteria.
      GET
  • Authorization
    • Access Granted Client Credentials
      POST
    • Get Token Information
      GET
  • Flights
    • (Scenario)Basic Flight Booking flow
      • Step 0: Authorization
      • Step 1: Flight Offers Search GET
      • Step 2: Flight Offers Price
      • Step 3: Flight Create Orders
    • Flight Booking
      • Flight Offers Search
      • Flight Offers Search
      • Flight Offers Price
      • Flight Create Orders
      • Flight Order Management
      • Flight Order Management
      • Seatmap Display
      • Seatmap Display
      • Branded Fares Upsell
      • Flight Price Analysis
      • Flight Choice Prediction
    • Flight Inspiration
      • Flight Inspiration Search
      • Flight Cheapest Date Search
      • Flight Availabilities Search
      • Travel Recommendations
    • Flight Schedule
      • On Demand Flight Status
      • Flight Delay Prediction
      • Airport On-Time Performance
    • Airport
      • Airport & City Search by Keyword
      • Airport & City Search by Id
      • Airport Nearest Relevant
      • Airport Routes
    • Airlines
      • Flight Check-in Links
      • Airline Code Lookup
      • Airline Routes
  • Destination experiences
    • Tours and Activities
      GET
    • Tours and Activities by Id
      GET
    • Tours and Activities by square
      GET
    • City Search
      GET
  • Car and Transfers
    • Transfer Search
      POST
    • Transfer Booking
      POST
    • Transfer Management
      POST
  • Market insights
    • Flight Most Traveled Destinations
      GET
    • Flight Most Booked Destinations
      GET
    • Flight Busiest Traveling Period
      GET
  • Hotels
    • (Scenario)Basic Hotel Booking flow
      • Step 0: Authorization
      • Step 1: Find Hotels by city
      • Step 2: Hotel Offers Search
      • Step 3: Hotel Booking v1
    • Hotel List by Id
    • Hotel List by Geocode
    • Hotel List by City
    • Hotel Search
    • Hotel Search Offer Information
    • Hotel Booking v1
    • Hotel Booking v2
    • Hotel Ratings
    • Hotel Name Autocomplete
  • Itinerary management
    • Trip Purpose Prediction
  • STARGAME
    • Common errors
      • InitialGetBalance
      • InitialGetBalance
      • GetBalanceBadHash
      • GetBalanceBadHash
      • InvalidCommand
      • InvalidCommand
      • InvalidUserName
      • InvalidUserName
      • PlayerBetMissingTransactionId
      • PlayerBetMissingTransactionId
      • PlayerWinEmptyTransactionId
      • PlayerWinEmptyTransactionId
      • PlayerBetNegativeAmount
      • PlayerBetNegativeAmount
      • PlayerWinNegativeAmount
      • PlayerWinNegativeAmount
      • PlayerBetInsufficientBalance
      • PlayerBetInsufficientBalance
      • CheckBalance
      • CheckBalance
    • Workflow
      • OpenSession
      • OpenSession
      • OpenSessionAlreadyOpened
      • OpenSessionAlreadyOpened
      • GetBalance
      • GetBalance
      • PlayerBet #1 (-50)
      • PlayerBet #1 (-50)
      • PlayerWin (+150)
      • PlayerWin (+150)
      • PlayerBet #2 (-50)
      • PlayerBet #2 (-50)
      • PlayerWinZeroAmount (+0)
      • PlayerWinZeroAmount (+0)
      • PlayerBet #3 (-50)
      • PlayerBet #3 (-50)
      • PlayerWin (+200)
      • PlayerWin (+200)
      • PlayerWinTransactionAlreadyExist
      • PlayerWinTransactionAlreadyExist
      • PlayerBet #4 (-200)
      • PlayerBet #4 (-200)
      • PlayerBetTransactionAlreadyExist
      • PlayerBetTransactionAlreadyExist
      • PlayerBetBadHash
      • PlayerBetBadHash
      • PlayerWinBadHash
      • PlayerWinBadHash
      • CancelBet #4 (+200)
      • CancelBet #4 (+200)
      • CancelBetAlreadyCancelled
      • CancelBetAlreadyCancelled
      • CancelBetDoesNotExist
      • CancelBetDoesNotExist
      • PlayerBet #5 (-50)
      • PlayerBet #5 (-50)
      • CloseSession
      • CloseSession
      • PlayerBet #6 (-250)
      • PlayerBet #6 (-250)
      • PlayerWin (+50)
      • PlayerWin (+50)
      • CancelBet #5 (+50)
      • CancelBet #5 (+50)
      • PlayerBet #7 (-100)
      • PlayerBet #7 (-100)
      • PlayerBet #8 (-50)
      • PlayerBet #8 (-50)
      • PlayerBet #9 (-25)
      • PlayerBet #9 (-25)
      • PlayerBet #10 (-25)
      • PlayerBet #10 (-25)
      • PlayerBet #11 (-50)
      • PlayerBet #11 (-50)
      • CancelBet #7 (+100)
      • CancelBet #7 (+100)
      • CancelBet #9 (+25)
      • CancelBet #9 (+25)
      • CancelBet #11 (+50)
      • CancelBet #11 (+50)
      • PlayerWin (+75)
      • PlayerWin (+75)
      • CloseSessionAlreadyClosed
      • CloseSessionAlreadyClosed
      • FinalCheckBalance
      • FinalCheckBalance
    • RemoteSession
  • IMEI
    • Get account details
    • Get list of available services
    • Create Bulk Search
    • Export CSV for Bulk Search
    • Export JSON for Bulk Search
    • Get list of Bulk Search history
    • Single service check
    • Get single history result
    • Get list of search history
    • SYNC-API Single service check
  • GPK
    • 玩家取得遊戲連結
  • SUPERSET
    • Menu
      • /menu/
    • Queries
      • /query/
      • /query/distinct/{column_name}
      • /query/related/{column_name}
      • /query/{pk}
      • /saved_query/
      • /saved_query/
      • /saved_query/
      • /saved_query/_info
      • /saved_query/distinct/{column_name}
      • /saved_query/export/
      • /saved_query/related/{column_name}
      • /saved_query/{pk}
      • /saved_query/{pk}
      • /saved_query/{pk}
    • Annotation Layers
      • /annotation_layer/
      • /annotation_layer/
      • /annotation_layer/
      • /annotation_layer/_info
      • /annotation_layer/related/{column_name}
      • /annotation_layer/{pk}
      • /annotation_layer/{pk}
      • /annotation_layer/{pk}
      • /annotation_layer/{pk}/annotation/
      • /annotation_layer/{pk}/annotation/
      • /annotation_layer/{pk}/annotation/
      • /annotation_layer/{pk}/annotation/{annotation_id}
      • /annotation_layer/{pk}/annotation/{annotation_id}
      • /annotation_layer/{pk}/annotation/{annotation_id}
    • AsyncEventsRestApi
      • /async_event/
    • CacheRestApi
      • /cachekey/invalidate
    • Charts
      • /chart/
      • /chart/
      • /chart/
      • /chart/_info
      • /chart/data
      • /chart/data/{cache_key}
      • /chart/export/
      • /chart/favorite_status/
      • /chart/import/
      • /chart/related/{column_name}
      • /chart/{pk}
      • /chart/{pk}
      • /chart/{pk}
    • CSS Templates
      • /css_template/
      • /css_template/
      • /css_template/
      • /css_template/_info
      • /css_template/related/{column_name}
      • /css_template/{pk}
      • /css_template/{pk}
      • /css_template/{pk}
    • Dashboards
      • /dashboard/
      • /dashboard/
      • /dashboard/
      • /dashboard/_info
      • /dashboard/export/
      • /dashboard/favorite_status/
      • /dashboard/import/
      • /dashboard/related/{column_name}
      • /dashboard/{pk}
      • /dashboard/{pk}
      • /dashboard/{pk}
      • /dashboard/{pk}/charts
    • Database
      • /database/
      • /database/
      • /database/_info
      • /database/export/
      • /database/import/
      • /database/test_connection
      • /database/{pk}
      • /database/{pk}
      • /database/{pk}
      • /database/{pk}/function_names/
      • /database/{pk}/related_objects/
      • /database/{pk}/schemas/
      • /database/{pk}/select_star/{table_name}/
      • /database/{pk}/select_star/{table_name}/{schema_name}/
      • /database/{pk}/table/{table_name}/{schema_name}/
    • Datasets
      • /dataset/
      • /dataset/
      • /dataset/
      • /dataset/_info
      • /dataset/distinct/{column_name}
      • /dataset/export/
      • /dataset/import/
      • /dataset/related/{column_name}
      • /dataset/{pk}
      • /dataset/{pk}
      • /dataset/{pk}
      • /dataset/{pk}/refresh
      • /dataset/{pk}/related_objects
    • LogRestApi
      • /log/
      • /log/
      • /log/{pk}
    • OpenApi
      • /openapi/{version}/_openapi
    • Security
      • /security/csrf_token/
      • /security/login
      • /security/refresh
  • VEGAS
    • BI
      • pre-login
      • login
      • dashboard
    • vl
      • Client API v2.0
        • Get Game List
      • Authentication API v2.0
        • Validate Authorization Code
        • Refresh Access Token
        • Get Account Information
      • Seamless Wallet API v2.0
        • Place Bet
        • Send Payoff
        • Reverse Transaction
        • Get Player Balance
      • Transfer Wallet API v2.0
        • Deposit money to the player's wallet.
        • Withdraw money from the player's wallet.
        • Get the current balance for the player.
        • Query players by balance.
        • Query player's total bet amount since last deposit.
        • Query player's bet/payout summary.
        • Query Total Loss Summary
      • Report API
        • Get Transfers
        • Check Transaction
        • Get Game History Link
        • Verify Transactions Summary
        • Get Detailed Betting Report
        • Get Betting Report
      • isonline
    • Vegaslounge
      • VEGASLOUNGE API集成指南手册
      • 客户端 CLIENT API
        • 示例 获取游戏列表
      • 身份验证 Authentication API
      • 转账钱包 TRANSFER WALLET
        • 示例: 获取玩家余额 Balance
        • 示例: 查询玩家指定余额 playersByBalance
        • 示例: 查询总损失总结 getTotalLoss API
        • 示例: 转入 DEPOSIT API
        • 示例: 转出 WITHDRAW API
        • 示例: 查询玩家最后存款投注金额 betAmountSinceLastDeposit
        • 示例: 查询玩家投注总结 getSummaryBet
        • 示例: 投注记录 REPORT/BETS API
      • 免转钱包 SEAMLESS WALLET
      • 报表 REPORT API
        • Verify Transactions
        • Check Transaction
        • Order Link
        • Verify Transactions Summary
        • Detailed Betting report
      • 附录
        • 投注类型
      • CompletedDOC
      • Verify Transactions
      • Check Transaction
      • Order Link
      • Verify Transactions Summary
      • Detailed Betting report
    • VL
      • report_bets
      • replay_Transfer
      • report_verifyTransactionsSummary
      • report_orderLink
      • report_checkTransaction
      • report_transfer
      • report_getTotalLoss
      • report_getSummaryBet
      • replay
      • betAmountSinceLastDeposit
      • playersByBalance
      • balance
      • withdrawal
      • deposit
    • VegasloungeAPI
      • 客户端 CLIENT API
        • 示例 获取游戏列表
      • 身份验证 Authentication API
      • 转账钱包 TRANSFER WALLET
        • 示例: 获取玩家余额 Balance
        • 示例: 查询玩家指定余额 playersByBalance
        • 示例: 查询总损失总结 getTotalLoss API
        • 示例: 转入 DEPOSIT API
        • 示例: 转出 WITHDRAW API
        • 示例: 查询玩家最后存款投注金额 betAmountSinceLastDeposit
        • 示例: 查询玩家投注总结 getSummaryBet
        • 示例: 投注记录 REPORT/BETS API
      • 免转钱包 SEAMLESS WALLET
      • 报表 REPORT API
        • Verify Transactions
        • Check Transaction
        • Order Link
        • Verify Transactions Summary
        • Detailed Betting report
      • CompletedDOC
        • 附录
          • 投注类型
      • Detailed Betting report
      • Verify Transactions Summary
      • Order Link
      • Check Transaction
      • Verify Transactions
  • Empire Gaming
    • Empire Gaming Integration v2.0
    • Client API
    • Seamless Wallet
    • Authentication API
    • Report API
    • 附录
    • Get Transfer
  • BI
    • /
      GET
    • login
      POST
    • Explore JSON
      POST
    • SUPERSET
      POST
    • api chart data
      POST
  1. BI

SUPERSET

Developing
POST
/superset/explore_json

Request

Body Params application/jsonRequired

Example
{"datasource": "74__table", "viz_type": "filter_box", "slice_id": 451, "url_params": {}, "time_range_endpoints": ["inclusive", "exclusive"], "granularity_sqla": "datehour", "time_grain_sqla": "P1D", "time_range": "Last month", "filter_configs": [{"asc": true, "clearable": true, "column": "currency", "defaultValue": "USD_VALUE", "key": "dVDGl5P9N", "label": "Currency", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "partnername", "key": "Q47tGi9ag", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "currency", "defaultValue": "USD_VALUE", "key": "kCutdvlws", "label": "Currency", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "gametype", "key": "rQZwyQlap", "label": "Game Type", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "clientname", "key": "ZXp3arteQ", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "clientplayerid", "key": "2LGl3QKOk", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "partnername", "key": "XJ5d_ghK6", "label": "Partner", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "clientname", "key": "Quohw_sZc", "label": "Client", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "partnername", "key": "PJw8o07GN", "label": "Partner", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "clientname", "key": "sbrOSGcLV", "label": "Client", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "referencecode", "key": "zVPBHwaOs", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "gametypename", "key": "DDNhn3KaE", "label": "Game Sub Type", "multiple": true, "searchAllOptions": false}], "date_filter": true, "adhoc_filters": [{"clause": "WHERE", "comparator": null, "expressionType": "SQL", "filterOptionName": "filter_yyfe8br946j_deifv6ml5c", "isExtra": false, "isNew": false, "operator": null, "sqlExpression": "yearid = date_format(current_date, '%Y')", "subject": null}], "label_colors": {}, "extra_filters": [{"col": "__time_range", "op": "==", "val": "Last day"}, {"col": "currency", "op": "IN", "val": ["USD_VALUE"]}], "dashboardId": 42, "instant_filtering": true, "show_sqla_time_column": false, "metrics": [{"aggregate": "SUM", "column": {"column_name": "win", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 897, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_mefh7k26e8_mw99mu4jq2e", "sqlExpression": null}, {"aggregate": "SUM", "column": {"column_name": "bets", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 856, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Bet", "optionName": "metric_3eb38crrg0v_qaug6ee0zes", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "# Players", "optionName": "metric_ptcewwrfne_r6jqov6jgee", "sqlExpression": "COUNT(DISTINCT internalplayerid)"}, {"aggregate": "SUM", "column": {"column_name": "bets", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1630, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Bets", "optionName": "metric_gl254y64t14_vbp6pqjb1a", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "EV Year to Date", "optionName": "metric_3y0x1n945um_f97ikzzmo6d", "sqlExpression": "cast(SUM(if(yearid like date_format(current_date, '%Y'), theowin,0)) as decimal(18,2))"}, {"aggregate": "SUM", "column": {"column_name": "bets", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 896, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Bet", "optionName": "metric_y2989lnoot_o75mjfvohl", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Hold %", "optionName": "metric_09gshwz1szcd_geykmsx521e", "sqlExpression": "ROUND((SUM(win)/SUM(bets))*100,1)"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Hold Perc", "optionName": "metric_dfnthtlkit4_ykzs0nc3q8r", "sqlExpression": "IF( sum(bets) > 0, SUM(win) / SUM(bets) , 0 )"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Std Dev", "optionName": "metric_xz7o9yd36rq_386ewlk75eh", "sqlExpression": "IF( sqrt( sum( POW(oneStd, 2.0) ) ) > 0, ( SUM(win) - SUM(ev) ) / sqrt( sum( POW(oneStd, 2.0) ) ), 0)"}, {"aggregate": "SUM", "column": {"column_name": "win", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1264, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_yaf176ppdh_16kt5y6xq95", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "MTD Hold%", "optionName": "metric_0g2jpgwmvgdr_05n9r3qrnb6c", "sqlExpression": "ROUND(TRY(\r\nSUM(if(monthid like date_format(current_date, '%M'), win,0))/\r\nSUM(if(monthid like date_format(current_date, '%M'), bets,1)))*100,1)"}, {"aggregate": "SUM", "column": {"column_name": "ev", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1632, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_pvwei3m68lr_2ti9xmua2tq", "sqlExpression": null}, {"aggregate": "SUM", "column": {"column_name": "win", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 857, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_a7jcbwbju3m_fhdcnli1r3h", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "YTD Hold%", "optionName": "metric_wg8vwygik1_o9g3o116dw", "sqlExpression": "ROUND(TRY(\nSUM(if(yearid like date_format(current_date, '%Y'), win,0))/\nSUM(if(yearid like date_format(current_date, '%Y'), bets,0)))*100,1)"}, {"aggregate": "COUNT_DISTINCT", "column": {"column_name": "internalplayerid", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 890, "is_dttm": false, "python_date_format": null, "type": "VARCHAR", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "# Players", "optionName": "metric_0wvwp90zck6_5gym2ocwll4", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Bet Year to Date", "optionName": "metric_9ukjmsna988_5amik4qnbnp", "sqlExpression": "cast(SUM(if(yearid like date_format(current_date, '%Y'), bets,0)) as decimal(18,2))"}, {"aggregate": "SUM", "column": {"column_name": "theowin", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 900, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_lreazyye6x_095tuyjf37lw", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Hold%", "optionName": "metric_lt2062fyyfk_sz9mfvd5ija", "sqlExpression": "ROUND((sum(win)/SUM(bets))*100,1)"}, {"aggregate": "SUM", "column": {"column_name": "win", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1631, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_703e16scasl_hqe5wjsgx7", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Bet Month to Date", "optionName": "metric_ikwbvwg7yad_q0ymm237lv", "sqlExpression": "cast(SUM(if(monthid like date_format(current_date, '%M'), bets,0)) as DECIMAL(18,2))"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "EV Month to Date", "optionName": "metric_8ptkyxsyp2_tgomvfzrqt", "sqlExpression": "cast(SUM(if(monthid like date_format(current_date, '%M'), theowin,0)) as decimal(18,2))"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "EV Hold Perc", "optionName": "metric_lnqvd3xihle_sbvfhi78kr", "sqlExpression": "IF( SUM(bets) > 0, SUM(ev) / SUM(bets), 0 )"}, {"aggregate": "SUM", "column": {"column_name": "theowin", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 900, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_fvk631czyqk_5y3xptwnbys", "sqlExpression": null}, {"aggregate": "SUM", "column": {"column_name": "ev", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1265, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_dmr52d2k3ui_3s7lnnzrqik", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Win Year to Date", "optionName": "metric_ewuqr1wy5c_rpz9ebpzg6q", "sqlExpression": "cast(SUM(if(yearid like date_format(current_date, '%Y'), win,0)) as decimal(18,2))"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_7mjxmz8t8fm_svc7u2nz2ga", "sqlExpression": "CAST(SUM(win) as int)"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Bet", "optionName": "metric_69rmowhmut8_dqt8tfc9we", "sqlExpression": "CAST(SUM(bets) as int)"}, {"aggregate": "SUM", "column": {"column_name": "theowin", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 860, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_qldk9iyge0j_n7l2bussqn9", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Win Month to Date", "optionName": "metric_laegzs53lwc_v38s77po6pq", "sqlExpression": "cast(SUM(if(monthid like date_format(current_date, '%M'), win,0)) as decimal(18,2))"}, {"aggregate": "SUM", "column": {"column_name": "bets", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1263, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Bet", "optionName": "metric_somhofxcs7e_10yqwlz2plum", "sqlExpression": null}], "groupby": ["gametypename", "clientname", "partnername", "bettypegroupname"], "columns": [], "row_limit": 10000, "order_desc": true, "color_scheme": "supersetColors", "y_axis_format": "SMART_NUMBER", "y_axis_bounds": [null], "bottom_margin": "auto", "x_ticks_layout": "auto", "pandas_aggfunc": "sum", "pivot_margins": false, "number_format": "SMART_NUMBER", "date_format": "smart_date", "metric": {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": false, "isNew": false, "label": "IF( sqrt( sum( POW(oneStd, 2.0) ) ) > 0,...", "optionName": "metric_ctxziw86fjj_zt6bwfil2y", "sqlExpression": "IF( sqrt( sum( POW(oneStd, 2.0) ) ) > 0, ( SUM(win) - SUM(ev) ) / sqrt( sum( POW(oneStd, 2.0) ) ), 0)"}, "show_trend_line": true, "start_y_axis_at_zero": true, "color_picker": {"a": 1, "b": 135, "g": 122, "r": 0}, "header_font_size": 0.4, "subheader_font_size": 0.15, "rolling_type": "cumsum", "timeseries_limit_metric": {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": false, "isNew": false, "label": "ABS(SUM(win))", "optionName": "metric_rg4qytxqnc_x509ov5qjq", "sqlExpression": "ABS(SUM(win))"}}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/superset/explore_json' \
--header 'Content-Type: application/json' \
--data-raw '{"datasource": "74__table", "viz_type": "filter_box", "slice_id": 451, "url_params": {}, "time_range_endpoints": ["inclusive", "exclusive"], "granularity_sqla": "datehour", "time_grain_sqla": "P1D", "time_range": "Last month", "filter_configs": [{"asc": true, "clearable": true, "column": "currency", "defaultValue": "USD_VALUE", "key": "dVDGl5P9N", "label": "Currency", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "partnername", "key": "Q47tGi9ag", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "currency", "defaultValue": "USD_VALUE", "key": "kCutdvlws", "label": "Currency", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "gametype", "key": "rQZwyQlap", "label": "Game Type", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "clientname", "key": "ZXp3arteQ", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "clientplayerid", "key": "2LGl3QKOk", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "partnername", "key": "XJ5d_ghK6", "label": "Partner", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "clientname", "key": "Quohw_sZc", "label": "Client", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "partnername", "key": "PJw8o07GN", "label": "Partner", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "clientname", "key": "sbrOSGcLV", "label": "Client", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "referencecode", "key": "zVPBHwaOs", "multiple": true, "searchAllOptions": false}, {"asc": true, "clearable": true, "column": "gametypename", "key": "DDNhn3KaE", "label": "Game Sub Type", "multiple": true, "searchAllOptions": false}], "date_filter": true, "adhoc_filters": [{"clause": "WHERE", "comparator": null, "expressionType": "SQL", "filterOptionName": "filter_yyfe8br946j_deifv6ml5c", "isExtra": false, "isNew": false, "operator": null, "sqlExpression": "yearid = date_format(current_date, '\''%Y'\'')", "subject": null}], "label_colors": {}, "extra_filters": [{"col": "__time_range", "op": "==", "val": "Last day"}, {"col": "currency", "op": "IN", "val": ["USD_VALUE"]}], "dashboardId": 42, "instant_filtering": true, "show_sqla_time_column": false, "metrics": [{"aggregate": "SUM", "column": {"column_name": "win", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 897, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_mefh7k26e8_mw99mu4jq2e", "sqlExpression": null}, {"aggregate": "SUM", "column": {"column_name": "bets", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 856, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Bet", "optionName": "metric_3eb38crrg0v_qaug6ee0zes", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "# Players", "optionName": "metric_ptcewwrfne_r6jqov6jgee", "sqlExpression": "COUNT(DISTINCT internalplayerid)"}, {"aggregate": "SUM", "column": {"column_name": "bets", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1630, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Bets", "optionName": "metric_gl254y64t14_vbp6pqjb1a", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "EV Year to Date", "optionName": "metric_3y0x1n945um_f97ikzzmo6d", "sqlExpression": "cast(SUM(if(yearid like date_format(current_date, '\''%Y'\''), theowin,0)) as decimal(18,2))"}, {"aggregate": "SUM", "column": {"column_name": "bets", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 896, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Bet", "optionName": "metric_y2989lnoot_o75mjfvohl", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Hold %", "optionName": "metric_09gshwz1szcd_geykmsx521e", "sqlExpression": "ROUND((SUM(win)/SUM(bets))*100,1)"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Hold Perc", "optionName": "metric_dfnthtlkit4_ykzs0nc3q8r", "sqlExpression": "IF( sum(bets) > 0, SUM(win) / SUM(bets) , 0 )"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Std Dev", "optionName": "metric_xz7o9yd36rq_386ewlk75eh", "sqlExpression": "IF( sqrt( sum( POW(oneStd, 2.0) ) ) > 0, ( SUM(win) - SUM(ev) ) / sqrt( sum( POW(oneStd, 2.0) ) ), 0)"}, {"aggregate": "SUM", "column": {"column_name": "win", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1264, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_yaf176ppdh_16kt5y6xq95", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "MTD Hold%", "optionName": "metric_0g2jpgwmvgdr_05n9r3qrnb6c", "sqlExpression": "ROUND(TRY(\r\nSUM(if(monthid like date_format(current_date, '\''%M'\''), win,0))/\r\nSUM(if(monthid like date_format(current_date, '\''%M'\''), bets,1)))*100,1)"}, {"aggregate": "SUM", "column": {"column_name": "ev", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1632, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_pvwei3m68lr_2ti9xmua2tq", "sqlExpression": null}, {"aggregate": "SUM", "column": {"column_name": "win", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 857, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_a7jcbwbju3m_fhdcnli1r3h", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "YTD Hold%", "optionName": "metric_wg8vwygik1_o9g3o116dw", "sqlExpression": "ROUND(TRY(\nSUM(if(yearid like date_format(current_date, '\''%Y'\''), win,0))/\nSUM(if(yearid like date_format(current_date, '\''%Y'\''), bets,0)))*100,1)"}, {"aggregate": "COUNT_DISTINCT", "column": {"column_name": "internalplayerid", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 890, "is_dttm": false, "python_date_format": null, "type": "VARCHAR", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "# Players", "optionName": "metric_0wvwp90zck6_5gym2ocwll4", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Bet Year to Date", "optionName": "metric_9ukjmsna988_5amik4qnbnp", "sqlExpression": "cast(SUM(if(yearid like date_format(current_date, '\''%Y'\''), bets,0)) as decimal(18,2))"}, {"aggregate": "SUM", "column": {"column_name": "theowin", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 900, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_lreazyye6x_095tuyjf37lw", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Hold%", "optionName": "metric_lt2062fyyfk_sz9mfvd5ija", "sqlExpression": "ROUND((sum(win)/SUM(bets))*100,1)"}, {"aggregate": "SUM", "column": {"column_name": "win", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1631, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_703e16scasl_hqe5wjsgx7", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Bet Month to Date", "optionName": "metric_ikwbvwg7yad_q0ymm237lv", "sqlExpression": "cast(SUM(if(monthid like date_format(current_date, '\''%M'\''), bets,0)) as DECIMAL(18,2))"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "EV Month to Date", "optionName": "metric_8ptkyxsyp2_tgomvfzrqt", "sqlExpression": "cast(SUM(if(monthid like date_format(current_date, '\''%M'\''), theowin,0)) as decimal(18,2))"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "EV Hold Perc", "optionName": "metric_lnqvd3xihle_sbvfhi78kr", "sqlExpression": "IF( SUM(bets) > 0, SUM(ev) / SUM(bets), 0 )"}, {"aggregate": "SUM", "column": {"column_name": "theowin", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 900, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_fvk631czyqk_5y3xptwnbys", "sqlExpression": null}, {"aggregate": "SUM", "column": {"column_name": "ev", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1265, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_dmr52d2k3ui_3s7lnnzrqik", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Win Year to Date", "optionName": "metric_ewuqr1wy5c_rpz9ebpzg6q", "sqlExpression": "cast(SUM(if(yearid like date_format(current_date, '\''%Y'\''), win,0)) as decimal(18,2))"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Win", "optionName": "metric_7mjxmz8t8fm_svc7u2nz2ga", "sqlExpression": "CAST(SUM(win) as int)"}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Bet", "optionName": "metric_69rmowhmut8_dqt8tfc9we", "sqlExpression": "CAST(SUM(bets) as int)"}, {"aggregate": "SUM", "column": {"column_name": "theowin", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 860, "is_dttm": false, "python_date_format": null, "type": "DECIMAL", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "EV", "optionName": "metric_qldk9iyge0j_n7l2bussqn9", "sqlExpression": null}, {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": true, "isNew": false, "label": "Win Month to Date", "optionName": "metric_laegzs53lwc_v38s77po6pq", "sqlExpression": "cast(SUM(if(monthid like date_format(current_date, '\''%M'\''), win,0)) as decimal(18,2))"}, {"aggregate": "SUM", "column": {"column_name": "bets", "description": null, "expression": null, "filterable": true, "groupby": true, "id": 1263, "is_dttm": false, "python_date_format": null, "type": "DOUBLE", "verbose_name": null}, "expressionType": "SIMPLE", "hasCustomLabel": true, "isNew": false, "label": "Bet", "optionName": "metric_somhofxcs7e_10yqwlz2plum", "sqlExpression": null}], "groupby": ["gametypename", "clientname", "partnername", "bettypegroupname"], "columns": [], "row_limit": 10000, "order_desc": true, "color_scheme": "supersetColors", "y_axis_format": "SMART_NUMBER", "y_axis_bounds": [null], "bottom_margin": "auto", "x_ticks_layout": "auto", "pandas_aggfunc": "sum", "pivot_margins": false, "number_format": "SMART_NUMBER", "date_format": "smart_date", "metric": {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": false, "isNew": false, "label": "IF( sqrt( sum( POW(oneStd, 2.0) ) ) > 0,...", "optionName": "metric_ctxziw86fjj_zt6bwfil2y", "sqlExpression": "IF( sqrt( sum( POW(oneStd, 2.0) ) ) > 0, ( SUM(win) - SUM(ev) ) / sqrt( sum( POW(oneStd, 2.0) ) ), 0)"}, "show_trend_line": true, "start_y_axis_at_zero": true, "color_picker": {"a": 1, "b": 135, "g": 122, "r": 0}, "header_font_size": 0.4, "subheader_font_size": 0.15, "rolling_type": "cumsum", "timeseries_limit_metric": {"aggregate": null, "column": null, "expressionType": "SQL", "hasCustomLabel": false, "isNew": false, "label": "ABS(SUM(win))", "optionName": "metric_rg4qytxqnc_x509ov5qjq", "sqlExpression": "ABS(SUM(win))"}}'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-10-28 11:22:10
Previous
Explore JSON
Next
api chart data
Built with