Skip to main content

numin package

Project description

numin Package

numin is a Python package designed for algorithmic trading and backtesting providing an API called NuminAPI.

numin v1 is out of service as of Dec 2025

numin v2 is under development; features available are documented below

Features

  • Data Retrieval: Download training, round, and validation data.
  • Prediction Submission: TBD
  • Real-Time Round Management: TBD
  • Backtesting: TBD
  • File Management: TBD
  • Returns Summary: TBD

Supported Methods

  • Data Download:
    • get_data_for_month(self,year,month,batch_size=4,window_size=100,target_type='rank'):
    • Returns a torch dataloader for the given year and month of Nifty 50 returns
    • Dimension of each day is 100,50. Returns tensor of shape batch_size,window_size,50 for features.
    • Targets are next day returns / ranked returns of shape batch_size,50
  • Backtesting:
    • compute_pnl(positions,targets):
    • Run backtests - given positions n,50 dimensional 1,0,-1 for each stock per day and targets from dataloader for test month.
    • Returns daily_pnl, Sharpe, total pnl etc.

Installation

Install numin using pip:

pip install numin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numin2-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numin2-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file numin2-1.0.0.tar.gz.

File metadata

  • Download URL: numin2-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for numin2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cbb36c3ae4f8b11cf7f19ddb501af8bcb8a33a63be93b2fc1149db981eaeb08b
MD5 6be1f88e6d39f9d8eea34edb859a565c
BLAKE2b-256 45a33cc31c3cbcb52c1ebcc34d6a2ea2d30534b6bad5b67542adf8ae05e9397c

See more details on using hashes here.

File details

Details for the file numin2-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: numin2-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for numin2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad395b7754510cb69e0b5df3dcc076e3b06b0b99a6f1df9d6364a8f08bbcaea8
MD5 e03c0e1e07220c7403214bc79aa1aef9
BLAKE2b-256 b04df90213b3253b6d85d53e81d310a467e2a146026a861f48a60668a5a9cbaa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page