semvec/pypi-packages huggingface dataset:
llm-reka 0.1a0
Access Reka models via the Reka API
License: Apache-2.0

# llm-reka

[![PyPI](https://img.shields.io/pypi/v/llm-reka.svg)](https://pypi.org/project/llm-reka/)
[![Changelog](https://img.shields.io/github/v/release/simonw/llm-reka?include_prereleases&label=changelog)](https://github.com/simonw/llm-reka/releases)
[![Tests](https://github.com/simonw/llm-reka/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/llm-reka/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-reka/blob/main/LICENSE)

Access Reka models via the Reka API

## Installation

Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
```bash
llm install llm-reka
```
## Usage

Get [a Reka API key](https://platform.reka.ai/apikeys) and configure it like this:
```bash
llm keys set reka
# Paste in the API key
```

Use `llm -m reka-flash "prompt"` to run prompts against `reka-flash`.

The other models supported are `reka-core` and `reka-edge`.

Core is the most expensive, then Flash, then Edge is cheapest. [Pricing here]().

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd llm-reka
python3 -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
llm install -e '.[test]'
```
To run the tests:
```bash
pytest
```
kucoin-futures-lib 0.13.0
Kucoin Futures wrapper library
License: Apache-2.0
Requires Python: <4.0,>=3.9

# Kucoin Futures Library

## Installation
```bash
pip install kucoin-futures-lib
```

## Class Structure
```mermaid
classDiagram

namespace kucoin_futures_lib {
    class KucoinFutures["KucoinFutures"]
    class KucoinFuturesMarket["KucoinFuturesMarket"]
    class KucoinFuturesTrade["KucoinFuturesTrade"]
    class KucoinFuturesUser["KucoinFuturesUser"]
    class KucoinFuturesWebsocket["KucoinFuturesWebsocket"]
    class KucoinFuturesHelper["KucoinFuturesHelper"]
    class EntryRangeHandler["handlers.EntryRangeHandler"]
    class OcoHandler["handlers.OcoHandler"]
}
namespace kucoin_futures {
    class Market["client.Market"]
    class Trade["client.Trade"]
    class User["client.User"]
    class WsToken["client.WsToken"]
    class KucoinFuturesWsClient["ws_client.KucoinFuturesWsClient"]
}
KucoinFutures o-- KucoinFuturesMarket
KucoinFutures o-- KucoinFuturesTrade
KucoinFutures o-- KucoinFuturesUser
KucoinFutures o-- KucoinFuturesWebsocket
KucoinFuturesMarket o-- Market
KucoinFuturesTrade o-- Trade
KucoinFuturesUser o-- User
KucoinFuturesWebsocket o-- WsToken
KucoinFuturesWebsocket o-- KucoinFuturesWsClient
KucoinFuturesWebsocket o-- EntryRangeHandler
KucoinFuturesWebsocket o-- OcoHandler
```

## Usage Examples

```python
from kucoin_futures_lib import initialize_kucoinf
from kucoin_futures_lib.utils import retriable

retriable = retriable(retries=3, exceptions=(Exception,), backoff_base=2.0, initial_backoff=0.1)

kucoinf = initialize_kucoinf(
    api_key='your-api-key',
    api_secret='your-api-secret',
    api_passphrase='your-api-passphrase',
    retriable=retriable,  # Optional retriable method to retry methods in the library
)

balance = kucoinf.user.get_balance(currency='USDT')
print(f"Account balance: {balance}")


current_price  = kucoinf.market.get_current_price(instrument='XBTUSDTM')
print(f"Current price: {current_price}")

# Create a market order with limit take profit, market stop loss and enable Oco
order_id = kucoinf.create_order(
    instrument="XBTUSDTM",
    side="buy",
    size=3,
    take_profit=75000,
    stop_loss=60000,
    leverage=10,
    enable_oco=True,
)
print(f"Order ID: {order_id}")
```