0.0.29 • Published 6 years ago

finevo-web v0.0.29

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

📦 Install

npm install finevo-web
yarn add finevo-web

🔨 Usage

If you have not started with web components, we suggest you to visit the official docs

import { FinOrderForm, FinOrderBook } from 'finevo-web';

//register the component as a custom element with the browser
customElements.define('fin-order-form', FinOrderForm);
customElements.define('fin-order-book', FinOrderForm);

And using it with the accessToken

<fin-order-form accessToken="a-valid-jwt-token"></fin-order-form>

You will need to define an options property for the order form component in the following format (The order form will not load unless these properties as defined):

const FinOrderForm = document.querySelector('fin-order-form');

//attaching default properties
FinOrderForm.options = {
    config: {...},
    order:{
        uuid: 'unique-id-for-the-orders',
        price: 5.29,
        side: '1',
        triggerType: '3',
        triggerPriceDirection: '1'
    },
    company: {
        name: 'CIMB',
        id: '1023', 
        exchange: 'BM',
        type: 'NM',
    }    
};

//attaching listener to listen for order events from our Market Order Aggregator
OrderForm.addEventListener('order', event => console.log(event));

Alternatively, using js

const FinOrderForm = document.createElement('fin-order-form');
FinOrderForm.setAttribute('accessToken', 'a-valid-jwt-token');
document.body.appendChild(FinOrderForm);
FinOrderForm.options = {...};

📃 Property Configuration

Under construction 🔨🔨🔨

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago