npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rhoova/node-client

v0.0.2

Published

--- ## Installation

Readme

This is a client project for Rhoova app.


Installation

Make sure you have Node.js installed

# Use npm install to install required packages
npm install
#To run Project
node test.js

Usage

You can use the application with the client

const app = require("@rhoova/node-client");

let client = new app.RhoovaClient({apiKey : #YOUR_API_KEY, apiSecret : #YOUR_API_SECRET});

Client Methods

  • loadData:

It allows you to create a data source. It takes 3 values, file, name and type.

file: Represents your data. Must be of json data type.

name: Represents the name of data. Must be of string data type.

type: Represents the data types YIELD_CURVE, YIELD_DATA, FIXED_RATE_BOND_DEFINITION ... that you will use over app.DataType.

//Example Usage

client.loadData({file: {
       "settlementDays": 2,
        "intpMethod": "linear",
        "currency": "TRY",
        "calendar": "TARGET",
        "dayCounter": "Actual360"}, name: "myData-7", type: app.DataType.YIELD_DATA}).then((result) => {
    console.log(result);
}).catch(error => {
     console.log(error)
});
  • getData:

It allows you to access your data with the id of the data you have created. It takes one value, id.

id: Represents your data id. Must be of string data type.

//Example Usage

client.getData({id: "86c2f69e-dae1-423a-8783-493530bb1253" }).then((result) => {
     console.log(result);
}).catch(error => {
     console.log(error)
});
  • createTask:

Allows you to create calculations. It takes 3 values, data, calculationType and waitResult(optional).

data: Represents your json data. Must be of json data type.

calculationType: Represents the calculation type you can use through app.CalculationType.

waitResult(optional): May take true or false values. If false only the taskId of the calculation is returned. You can print the result part directly. If true, it returns the result of the calculation performed. You can see your calculation result with console.log(result.result).

//Example Usage

let calculationData = {
    "valuationDate": "2021-03-17",
    "settlementDate": "2021-03-17",
    "maturityDate": "2021-06-17",
    "notional": 1000000,
    "optionDefinition": {
        "underlying": "USD",
        "currency": "TRY",
        "callPut": "Call",
        "exerciseType": "European",
        "buySell": "Buy",
        "strike": 7.81,
        "underlyingPrice": 7.5109,
        "volatility": 0.19473,
        "interestRate": 0.16732,
        "riskFreeRate": 0.0028,
        "processType": "BSMerton",
        "method": "Analytic",
        "calendar": "Turkey",
        "businessDayConvention": "ModifiedFollowing",
        "dayCounter": "Actual360",
        "optionStartDate": "2021-03-17",
        "optionEndDate": "2021-06-17",
        "timeSteps": 800,
        "timeGrid": 801
    }
};

client.createTask({data: calculationData, calculationType: app.CalculationType.VANILLA_OPTION, waitResult: true}).then((result) => {
    console.log(JSON.stringify(JSON.parse(result.result), null, 6))
}).catch(error => {
    console.log(error)
});
  • getTaskResult:

You can give the id of the calculation you have done before as taskId and see the result. It takes one value, taskId.

taskId: Represents your calculation id. Must be of string data type.

//Example Usage

client.getTaskResult({taskId: "77931e4e-5f56-4ba1-90eb-6f6326e75161"}).then(result=>{
    console.log(JSON.stringify(JSON.parse(result.result), null, 6))
});