open-index/open-npm huggingface dataset:
npm package: @royli/ssmgr-trojan-client
Description: ssmgr client for trojan-go
Author: Roy Li
Latest version: 2.2.2

# ssmgr-trojan-client

> This is a fork of the original [ssmgr-trojan-client](https://github.com/llc1123/ssmgr-trojan-client).

[![npm](https://img.shields.io/npm/v/@royli/ssmgr-trojan-client)][npm-url]
[![npm](https://img.shields.io/npm/dt/@royli/ssmgr-trojan-client)][npm-url]
![dev-build](https://github.com/geekdada/ssmgr-trojan-client/workflows/dev-build/badge.svg?event=push)
![NPM](https://img.shields.io/npm/l/@royli/ssmgr-trojan-client)

[npm-url]: https://www.npmjs.com/package/@royli/ssmgr-trojan-client

A [shadowsocks-manager](https://github.com/shadowsocks/shadowsocks-manager) s-node for trojan-gfw. If you know how to use trojan and shadowsocks-manager, you know what this does.

**Support [p4gefau1t/trojan-go](https://github.com/p4gefau1t/trojan-go) only.**

## Prerequisites
- Node.js >= 16.0
- shadowsocks-manager >= 0.36.0
- trojan-go v0.10.6 tested

## Installation
```
npm -g i @royli/ssmgr-trojan-client
```

## Usage
```
Usage: ssmgr-trojan-client [options]

Options:
  -l, --listen-address [addr:port]  listening address for this client (default: "0.0.0.0:4001")
  -k, --key <password>              ssmgr client password
  --api <addr:port>                 trojan-go API address
  --trojan-config <path>            trojan-go config file path
  --fake-website [addr:port]        run a fake website on address [addr:port], default to "127.0.0.1:4002" if not specified
  -d, --debug                       verbose output for debugging (default: false)
  -h, --help                        display help for command
```

## Examples

### Run the client in standalone mode
```bash
ssmgr-trojan-client -l [addr:port] -k <password> --api <addr:port>
```

You need to run trojan-go separately in this mode.

### Run the client with a builtin trojan-go instance
```bash
ssmgr-trojan-client -l [addr:port] -k <password> --trojan-config <path>
```

A builtin trojan-go instance (latest version) will be started automatically using the configuration provided (please make sure the API feature is enabled).

### Run a fake website alongside the client
```bash
ssmgr-trojan-client -l [addr:port] -k <password> --trojan-config <path> --fake-website
```

A fake website will be started alongside the client, which can be used by trojan-go. The default listening address is `127.0.0.1:4002`.

## License

[MIT](./LICENSE)

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fgeekdada%2Fssmgr-trojan-client.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fgeekdada%2Fssmgr-trojan-client?ref=badge_large)
npm package: @roylines/nifty-data
Description: module to access nifty gateway data
Author: Roy Lines
Latest version: 1.0.13

# @roylines/nifty-data

![ci](https://github.com/roylines/node-nifty-data/actions/workflows/action.yml/badge.svg)
[![npm version](https://badge.fury.io/js/%40roylines%2Fnifty-data.svg)](https://badge.fury.io/js/%40roylines%2Fnifty-data)

A node module for accessing [nifty gateway](https://niftygateway.com) market data. This allows you to access the market data underpinning, for example, the [Bitcoin Angel Nifty](https://niftygateway.com/itemdetail/secondary/0xe9be55ffedb6c2a2f3f8eac31c60d7f122f79958/11400012483). Please use responsibly and within the Nifty [terms of use](https://niftygateway.com/termsofuse).

## Install

```
npm install @roylines/nifty-data
```

## Quick Start

```js
const nifty = require("@roylines/nifty-data");

const globalHistory = await nifty.getGlobalHistory({
  contractAddress: "0xe9be55ffedb6c2a2f3f8eac31c60d7f122f79958",
});

console.log("global history", globalHistory);
```
npm package: @roylines/tradingview
Description: module to access tradingview.com data
Author: Roy Lines
Latest version: 1.0.11

# @roylines/tradingview

![ci](https://github.com/roylines/node-tradingview/actions/workflows/action.yml/badge.svg)
[![npm version](https://badge.fury.io/js/%40roylines%2Ftradingview.svg)](https://badge.fury.io/js/%40roylines%2Ftradingview)

A node module for accessing [trading view](https://www.tradingview.com) technical analysis signals. This allows you to access the numbers underpinning, for example, the [BTC to GBP technicals](https://www.tradingview.com/symbols/BTCGBP/technicals/).

## Install

```
npm install @roylines/tradingview
```


## Quick Start

```js
const tradingview = require('@roylines/tradingview');

const signal = await tradingview.get()
console.log('signal', signal)
```

## API

<a name='get'></a>
#### `get(opts): Promise`

Retrieves a signal from [tradingview](https://www.tradingview.com)

Options:

* `ticker: String`, the ticker to obtain a signal for. Defaults to `COINBASE:BTCGBP`.
* `resolution: Integer`, the resolution of the technical signal in seconds. Defaults to `1`.
* `scanner: String`, the scanner to use. Defaults to `crypto`
* `indicator: String`, the indicator to retrieve. Defaults to `Recommend.All`.

Returns:

* `ticker: String`, the ticker used.
* `resolution: Integer`, the resolution used.
* `scanner: String`, the scanner used.
* `indicator: String`, the indicator retrieved.
* `signal: Float`, the signal from trading view. This a float between -1 and 1 where -1 represents a strong sell signal, 1 represents a strong buy signal, and 0 represents a neutral view.


Example:

```js
const tradingview = require('@roylines/tradingview')

const {signal} = await tradingview.get({ticker: "COINBASE:BTCGBP", resolution: 5});
console.log('signal received', signal)
```

## License

MIT