Skip to content

Instantly share code, notes, and snippets.

@gmananton
Created February 28, 2020 13:14
Show Gist options
  • Save gmananton/3e1b3df0431a64b96c71996ff18b7f27 to your computer and use it in GitHub Desktop.
Save gmananton/3e1b3df0431a64b96c71996ff18b7f27 to your computer and use it in GitHub Desktop.
{
    "columns": [
        {
            "name": "ag_grid_key",
            "title": {
                "ru": "ID позиции",
                "en": "Position ID"
            },
            "tooltip": {
                "ru": "Системный идентификатор позиции",
                "en": "Position system identifier"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": []
        },
        {
            "name": "mv_report_ccy",
            "title": {
                "ru": "MV (Валюта отчета)",
                "en": "MV (Report Ccy)"
            },
            "tooltip": {
                "ru": "Стоимость позиции в валюте отчета",
                "en": "Position value in report currency"
            },
            "type": "money",
            "valueFormatter": "money_with_ccyFormatter",
            "cellStyle": {
                "textAlign": "right"
            },
            "allowedAggFuncs": [
                "aggregateMoney"
            ]
        },
        {
            "name": "mv_position_ccy",
            "title": {
                "ru": "MV (Валюта позиции)",
                "en": "MV (Position Ccy)"
            },
            "tooltip": {
                "ru": "Стоимость позиции",
                "en": "Position value"
            },
            "type": "money",
            "valueFormatter": "money_with_ccyFormatter",
            "cellStyle": {
                "textAlign": "right"
            },
            "allowedAggFuncs": [
                "aggregateMoney"
            ]
        },
        {
            "name": "position_date",
            "title": {
                "ru": "Дата позиции",
                "en": "Position Date"
            },
            "tooltip": {
                "ru": "Дата создания позиции",
                "en": "Position opening date"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "position_type",
            "title": {
                "ru": "Тип позиции",
                "en": "Position Type"
            },
            "tooltip": {
                "ru": "Тип позиции. Option/ExtendibleOption/Cash",
                "en": "Position type. Option/ExtendibleOption/Cash"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "position_class",
            "title": {
                "ru": "Класс позиции",
                "en": "Position Class"
            },
            "tooltip": {
                "ru": "Класс позиции. Позволяет отличить позиции одного типа, возникшие от разных операций (комиссия, премия, расчеты)",
                "en": "Position class. Allows to distinguish positions of the same type arising from different operations (Commission, premium, calculations) "
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "profit_center",
            "title": {
                "ru": "Профит-центр",
                "en": "Profit-center"
            },
            "tooltip": {
                "ru": "Профит-центр",
                "en": "Profit-center"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "portfolio",
            "title": {
                "ru": "Портфель",
                "en": "Portfolio"
            },
            "tooltip": {
                "ru": "Портфель",
                "en": "Portfolio"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "book_id",
            "title": {
                "ru": "Книга",
                "en": "Book"
            },
            "tooltip": {
                "ru": "ID Книги",
                "en": "Book ID"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "counterparty",
            "title": {
                "ru": "Контрагент",
                "en": "Counterparty"
            },
            "tooltip": {
                "ru": "Контрагент",
                "en": "Counterparty"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "trade_id",
            "title": {
                "ru": "Номер сделки",
                "en": "Trade ID"
            },
            "tooltip": {
                "ru": "Номер сделки",
                "en": "Trade ID"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "expiration_date",
            "title": {
                "ru": "Дата экспирации",
                "en": "Expiration Date"
            },
            "tooltip": {
                "ru": "Дата экспирации",
                "en": "Expiration date"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "delivery_date",
            "title": {
                "ru": "Дата оплаты 1",
                "en": "Payment Date 1"
            },
            "tooltip": {
                "ru": "Дата оплаты1 (оплата первого движения)",
                "en": "Payment Date1 (payment of first flow)"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "payment_date",
            "title": {
                "ru": "Дата оплаты2",
                "en": "Payments Date2"
            },
            "tooltip": {
                "ru": "Дата оплаты2 (оплата второго движения)",
                "en": "Payment Date2 (payment of second flow)"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "option_style",
            "title": {
                "ru": "Стиль Опциона",
                "en": "Option Style"
            },
            "tooltip": {
                "ru": "Стиль опциона (Европейсткий/Американтский)",
                "en": "Option style (European/American)"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "option_type",
            "title": {
                "ru": "Тип Опциона",
                "en": "Option Type"
            },
            "tooltip": {
                "ru": "Тип опциона (Call/Put)",
                "en": "Option type (Call/Put)"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "position_direction",
            "title": {
                "ru": "Направление",
                "en": "Direction"
            },
            "tooltip": {
                "ru": "Направление позиции (Long/Short)",
                "en": "Position direction (Long/Short)"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "option_strike",
            "title": {
                "ru": "Страйк Опциона",
                "en": "Option Strike"
            },
            "tooltip": {
                "ru": "Страйк. Цена исполнения (Ccypricing per Ccydealing)",
                "en": "Strike. Price of exercise (Ccypricing per Ccydealing))"
            },
            "type": "number",
            "valueFormatter": "number_accuracy_4_digits_and_instrument_Formatter",
            "cellStyle": {
                "textAlign": "right"
            },
            "allowedAggFuncs": [
                "bubble",
                "min",
                "max",
                "avg"
            ]
        },
        {
            "name": "instrument_type",
            "title": {
                "ru": "Тип Инструмента",
                "en": "Instrument Type"
            },
            "tooltip": {
                "ru": "Тип инструмента (Ccy Pair)",
                "en": "Instrument Type (Ccy Pair)"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "instrument_id",
            "title": {
                "ru": "Базовый актив",
                "en": "Underlying"
            },
            "tooltip": {
                "ru": "",
                "en": "Базовый актив"
            },
            "type": "Underlying",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "ref_instrument_id",
            "title": {
                "ru": "Реф. Инструмент",
                "en": "Ref. Instrument"
            },
            "tooltip": {
                "ru": "Актив сформировавший позицию",
                "en": "Instrument that formed position"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "position_quantity",
            "title": {
                "ru": "Размер позиции",
                "en": "Position Quantity"
            },
            "tooltip": {
                "ru": "Размер позиции",
                "en": "Position Quantity"
            },
            "type": "number",
            "valueFormatter": "currencyFormatter",
            "cellStyle": {
                "textAlign": "right"
            },
            "allowedAggFuncs": [
                "sum",
                "min",
                "max",
                "avg"
            ]
        },
        {
            "name": "settlement_method",
            "title": {
                "ru": "Поставочный",
                "en": "Deliverable"
            },
            "tooltip": {
                "ru": "Поставочный/Расчетный",
                "en": "Deliverable/Nondeliverable"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "extendible_call_date",
            "title": {
                "ru": "Дата Call",
                "en": "Call date"
            },
            "tooltip": {
                "ru": "Дата выставления Call",
                "en": "Date of Call"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "position_to_report_rate",
            "title": {
                "ru": "Валюта Позиции к Валюте Отчета",
                "en": "Position Ccy to Report Ccy Rate"
            },
            "tooltip": {
                "ru": "Курс конвертации из валюты позиции в валюту отчета",
                "en": "Conversion course from position ccy to report ccy"
            },
            "type": "number",
            "valueFormatter": "number_accuracy_4_digits_Formatter",
            "cellStyle": {
                "textAlign": "right"
            },
            "allowedAggFuncs": [
                "avg",
                "min",
                "max"
            ]
        },
        {
            "name": "position_to_report_reverse_rate",
            "title": {
                "ru": "Валюта Отчета к Валюте Позиции",
                "en": "Report Ccy to Position Ccy Rate"
            },
            "tooltip": {
                "ru": "Курс конвертации из валюты отчета в валюту позиции",
                "en": "Conversion course from report ccy to position ccy"
            },
            "type": "number",
            "valueFormatter": "number_accuracy_4_digits_Formatter",
            "cellStyle": {
                "textAlign": "right"
            },
            "allowedAggFuncs": [
                "avg",
                "min",
                "max"
            ]
        },
        {
            "name": "ref_instrument_type",
            "title": {
                "ru": "Тип Реф. Инструмента",
                "en": "Ref. Instrument Type"
            },
            "tooltip": {
                "ru": "Тип актива сформировавшего позицию",
                "en": "Type of Instrument that formed position"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        },
        {
            "name": "option_class",
            "title": {
                "ru": "Вид Опциона",
                "en": "Option Class"
            },
            "tooltip": {
                "ru": "Вид опциона (Ванильный/Барьерный)",
                "en": "Option class (Vanilla/Barrier)"
            },
            "type": "string",
            "cellStyle": {},
            "allowedAggFuncs": [
                "bubble"
            ]
        }
    ],
    "detailColumns": [],
    "arguments": [
        {
            "name": "report_date",
            "controlType": "date",
            "title": {
                "ru": "Дата отчета",
                "en": "Report Date"
            },
            "tooltip": {
                "ru": "Дата отчета",
                "en": "Report Date"
            },
            "defaultValue": "currentDate"
        },
        {
            "name": "report_currency",
            "controlType": "select",
            "title": {
                "ru": "Валюта",
                "en": "Currency"
            },
            "tooltip": {
                "ru": "Валюта",
                "en": "Currency"
            },
            "defaultValue": "USD",
            "values": [
                {
                    "id": "USD",
                    "value": "USD"
                }
            ]
        }
    ],
    "refreshIntervalMs": 5000,
    "authorities": [
        "view:reports:strategy_positions"
    ],
    "group": {
        "name": "optionStrategy",
        "title": {
            "ru": "Option Strategy",
            "en": "Option Strategy"
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment