back-testing-react
TypeScript icon, indicating that this package has built-in type declarations

2.2.8 • Public • Published

back-testing-react

Type npm version npm downloads

Parametric back testing web modules developed by NormanMax Insurance Solutions

About

This is a small React library for use in Node.js environments, providing the ability to run BackTesting components and applications.

NOTICE

The NormanMax BackTesting requires an mapAccessToken and an apiAccessToken for the components to be utilized.

Installation

$ npm install back-testing-react

Usage

import { BackTestingWizard } from 'back-testing-react'

function App() {

    // list of payouts containing only one payout entry for demo purposes
    function generateDemoPayouts(){
        return [{category: 10, payout: 0.75}]
    }

    return(
        <div style={{height:'100vh',width:'100vw'}}>
        <BackTestingWizard 
            mapAccessToken="..." 
            apiAccessToken="..."
            env='uat'
            selectedProxyPayoutOptionIndex={0}
            proxyPayoutOptions={[
                {key:'Demo Payouts #1', value:generateDemoPayouts()},
                {key:'Demo Payouts #2', value:generateDemoPayouts()},
                {key:'Demo Payouts #3', value:generateDemoPayouts()}
            ]}
            selectedAnemometerPayoutOptionIndex={0}
            anemometerPayoutOptions={[
                {key:'Demo Payouts #1', value:generateDemoPayouts()},
                {key:'Demo Payouts #2', value:generateDemoPayouts()},
                {key:'Demo Payouts #3', value:generateDemoPayouts()}
            ]}
            selectedCIACPayoutOptionIndex={0}
            ciacPayoutOptions={[
                {key:'Demo Payouts #1', value:generateDemoPayouts()},
                {key:'Demo Payouts #2', value:generateDemoPayouts()}
            ]}/>
        </div>
    );
}

export default App

Readme

Keywords

none

Package Sidebar

Install

npm i back-testing-react

Weekly Downloads

18

Version

2.2.8

License

ISC

Unpacked Size

34.1 MB

Total Files

136

Last publish

Collaborators

  • nmis3939
  • jlhaddad
  • ayanez23