Skip to content

Feature/multi index f o - #137

Merged
soumya07ad merged 9 commits into
mainfrom
feature/multiIndex-f_o
Sep 15, 2026
Merged

soumya07ad merged 9 commits into
mainfrom
feature/multiIndex-f_o

Conversation

@SagaRoy12

Copy link
Copy Markdown
Contributor

No description provided.

@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: a24eb0ab-d3c7-4240-a12a-9a62d962df40


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

String _selectedMode = 'OI';
int? _hoverIndex;

final List<Map<String, dynamic>> _dataPoints = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

final isOi = _selectedMode == 'OI';
final cardTitle = isOi ? 'Open Interest' : 'Volume';

final mainValueStr = isOi ? '52,48,750' : '18,72,300';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

? (selectedContract['trading_symbol'] ?? selectedContract['tradingSymbol'] ?? '$activeSymbol FUT 24 SEP 26').toString()
: '$activeSymbol FUT 24 SEP 26';

final timeframes = ['1D', '1W', '1M', '3M', '1Y'];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use it from design system

case '1Y':
dates = ['Oct', 'Dec', 'Feb', 'Apr', 'Jun', 'Aug', 'Sep'];
rawPoints = [
[1980.00, 2040.00, 1965.00, 2025.00],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why hardcoded ?

import 'package:http/http.dart' as http;

const String _upstoxBearerToken =
'eyJ0eXAiOiJKV1QiLCJrZXlfaWQiOiJza192MS4wIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiIyWENSTjgiLCJqdGkiOiI2YTU3M2Q0ZGE3NDJhNzNmMmVkMWMyYjEiLCJpc011bHRpQ2xpZW50IjpmYWxzZSwiaXNQbHVzUGxhbiI6ZmFsc2UsImlzRXh0ZW5kZWQiOnRydWUsImlhdCI6MTc4NDEwMjIyMSwiaXNzIjoidWRhcGktZ2F0ZXdheS1zZXJ2aWNlIiwiZXhwIjoxODE1Njg4ODAwfQ.mFt7PdRo9hfh-3UKVtTt_U7l10cIMPHzXqyDTV86Zrg';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

token should not be hardcoded

}

static String _monthName(int month) {
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same months table used in the market many pages, use it on common system

final marketTheme = context.marketTheme;

final buyOrders = [
{'price': '2,203.40', 'qty': '5,000', 'orders': '3'},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use it on backend

Comment thread am_market/ui/lib/features/f_o/providers/futures_provider.dart
@soumya07ad
soumya07ad merged commit 520ef43 into main Sep 15, 2026
24 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants