# falconx-node

> REST client for FalconX APIs

Latest version **2.0.2** (published 2025-07-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install falconx-node
pnpm add falconx-node
yarn add falconx-node
bun add falconx-node
```

## Health

**Score 35/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2025-07-09 |
| First published | 2020-08-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 29.6 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Anushree Chatterjee |
| Maintainers | pradeep_fx, swapneil |

## Links

- npm: https://www.npmjs.com/package/falconx-node
- Repository: https://github.com/falconxio/falconx-node
- Homepage: https://github.com/falconxio/falconx-node#readme
- Issues: https://github.com/falconxio/falconx-node/issues
- npm.io page: https://npm.io/package/falconx-node

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.21.2
- [crypto-js](https://npm.io/package/crypto-js.md) ^4.0.0

## Recent versions

- 2.0.2 (latest) — 2025-07-09
- 2.0.1 — 2024-12-02
- 2.0.0 — 2024-09-23
- 1.0.4 — 2024-01-17
- 1.0.3 — 2023-03-17
- 1.0.2 — 2022-02-17
- 1.0.1 — 2020-08-05
- 1.0.0 — 2020-08-05

## README

# Overview
This is the official NodeJS client for the FalconX API.

API Documentation: http://docs.falconx.io

# Installation
```sh
npm i -S falconx-node
```

OR

```sh
yarn add falconx-node
```

# Quickstart

```javascript
import FalconxClient from 'falconx-node';

const fxClient = new FalconxClient(apiKey, secretKey, passphrase);
fxClient.getQuote('ETH', 'USD', 0.1, 'two_way').then(quote => {
    fxClient.executeQuote(quote.fx_quote_id, 'sell').then(executedQuote => {
        console.log(executedQuote);
    });
});
```

## Latest Update

All the trading requests will default to the new faster endpoint.
The v3 flasg introduced earlier has been removed and should not be passed in the request (see sample below)


```javascript
import FalconxClient from 'falconx-node';

const fxClient = new FalconxClient(apiKey, secretKey, passphrase);

options = {
    client_order_id: '<some client order id>'
}

fxClient.placeOrder('ETH', 'USD', 0.1, 'sell', 'market', options).then(response => {
     console.log(response);
});
```


# About FalconX
FalconX is an institutional digital asset brokerage.

---
_Source: https://npm.io/package/falconx-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
