1.0.0 • Published 2 years ago
decltr-kraken-axios v1.0.0
Decltr = Declarative Trading
decltr-kraken-axios
Decltr is a TypeScript library for building trading strategies.
- This library helps you use decltr by giving you several useful APIs for working with kraken and axios HTTP client.
Installation
- For npm
npm i decltr-kraken-axios
- For yarn
yarn add decltr-kraken-axios
Getting Started
import DecltrKrakenAxios from "decltr-kraken-axios";
const krakenAxiosClient = new DecltrKrakenAxios(
KRAKEN_API_KEY,
KRAKEN_PRIVATE_KEY
);
// API
krakenAxiosClient.api("/0/private/ClosedOrders").then(console.log);
krakenAxiosClient.useTicker("XETHZUSD").then(console.log);
krakenAxiosClient
.AddOrder({
// ordertype: "market" | "limit";
// type: "buy" | "sell";
// volume: string;
// pair: string;
// price?: string;
})
.then(console.log);
License
decltr-kraken-axios is MIT licensed.
1.0.0
2 years ago