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

@1xp-ai/coinone-skill

v1.4.0

Published

AI Trading Assistant for Coinone. Market analysis, balance tracking, and situational order execution.

Readme

@1xp-ai/coinone-skill

npm version npm downloads Coverage Tests License: MIT TypeScript

🤖 AI Trading Assistant for Coinone Exchange

An intelligent trading skill that goes beyond simple API wrappers. Provides situational analysis, slippage calculation, and risk management for optimal trade execution.

📦 Installation

npm install @1xp-ai/coinone-skill

🚀 Quick Start

import { 
  getTicker, 
  getOrderbook, 
  analyzeMarket, 
  calculateSlippage,
  recommendOrderType 
} from '@1xp-ai/coinone-skill';

// Get current BTC price
const ticker = await getTicker('BTC');
console.log(`BTC/KRW: ${ticker.last}`);

// Analyze market conditions
const orderbook = await getOrderbook('BTC');
const analysis = analyzeMarket(orderbook);

console.log(`Spread: ${analysis.spreadPercent?.toFixed(2)}%`);
console.log(`Market Imbalance: ${analysis.imbalance?.toFixed(2)}`);

// Get order recommendation
const orderType = recommendOrderType(analysis.spreadPercent!, 0.5);
console.log(`Recommended: ${orderType} order`);

✨ Features

📊 Market Analysis

  • Real-time ticker, orderbook, and trade data
  • Spread/depth/imbalance metrics
  • OHLCV chart data

🎯 Smart Order Execution

  • Slippage calculation before order
  • Order type recommendation (LIMIT vs MARKET)
  • Large order splitting

🛡️ Risk Management

  • Balance/limits validation

  • Minimum order checks

  • Slippage threshold warnings

  • Public WS client with auto-reconnect

📄 Error Codes

  • Error code reference included in skill/ERROR_CODES.md

📖 API Reference (Summary)

Quote currency defaults to KRW unless specified.

Public API (No auth required)

| Function | Description | |----------|-------------| | getTicker(target, quote?) | Get current price | | getAllTickers(quote?) | Get all market tickers | | getOrderbook(target, quote?, size?) | Orderbook depth | | getRecentTrades(target, quote?) | Recent trades | | getChart(target, quote?, interval?) | OHLCV chart data | | getMarkets(quote?) | Markets list | | getMarketInfo(target, quote?) | Single market info | | getCurrencies() | Supported currencies | | getRangeUnits(quote?) | Tick/qty units | | getUTCTicker(target, quote?) | UTC ticker (single) | | getAllUTCTickers(quote?) | UTC tickers (all) |

Private API (Auth required)

| Function | Description | |----------|-------------| | getBalance(credentials) | Account balances | | placeOrder(order, credentials) | Place buy/sell order | | cancelOrder(orderId, credentials) | Cancel an order | | getOpenOrders(quote, target, credentials) | Open orders | | getCompletedOrders(quote, target, credentials) | Completed orders |

Trading & Analyzer

| Function | Description | |----------|-------------| | analyzeMarket(orderbook) | Market conditions | | calculateSlippage(levels, qty) | Expected slippage | | recommendOrderType(spread, threshold) | LIMIT/MARKET recommendation | | checkRisk(params) | Risk validation | | splitOrder(qty, maxSize) | Split large orders | | analyzeSnapshot(symbol, orderbook, trades) | Advanced microstructure metrics |

🔐 Authentication

Timezone: All time fields/examples use KST (Asia/Seoul) unless noted.

import { getBalance, placeOrder } from '@1xp-ai/coinone-skill';

const credentials = {
  accessToken: process.env.COINONE_ACCESS_TOKEN!,
  secretKey: process.env.COINONE_SECRET_KEY!
};

const balance = await getBalance(credentials);

🧪 Testing

# Run all tests
npm test

# With coverage
npm run coverage

Coverage: 94.62% statements ✅

📁 Project Structure

coinone-skill/
├── src/
│   ├── api/
│   │   ├── public.ts    # Public API endpoints
│   │   └── private.ts   # Authenticated endpoints
│   ├── trading.ts       # Trading logic & analysis
│   └── index.ts         # Main exports
├── skill/               # Skill documentation (GitHub Pages)
│   ├── SKILL.md
│   ├── SECURITY.md
│   ├── HEARTBEAT.md
│   └── package.json
└── docs/                # Internal documentation
    ├── API.md
    ├── VERSIONING.md
    └── TASKS.md

🤝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feat/amazing-feature)
  3. Commit changes (git commit -m 'feat: add amazing feature')
  4. Push to branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

Commit Convention

We use Conventional Commits:

  • feat: New feature (bumps minor version)
  • fix: Bug fix (bumps patch version)
  • feat!: / BREAKING CHANGE: Breaking change (bumps major version)
  • docs: Documentation only
  • chore: Maintenance

📄 License

MIT © 1XP-AI

🔗 Links


Built with ❤️ by the 1XP-AI Team