pub-api

Authenticate to the Pub API and place orders with bearer tokens.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/tombelial666/test --skill pub-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pub-api
Source: https://github.com/tombelial666/test/tree/main/.cursor/skills/pub-api
Command: npx skills add https://github.com/tombelial666/test --skill pub-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies authenticating with the Pub API and executing secure order flows by handling token management and API calls.

Core Features & Use Cases

  • Token retrieval and bearer authentication for POST /api/token and POST /api/Orders/PlaceOrder.
  • Guidance to avoid exposing credentials and to keep secrets in environment/runtime artifacts.
  • Basic error handling and workflow guidance for 401/403 responses with typical Pub API scenarios.
  • Use Case: login to Pub API and place an order using a valid token for stock/equity trades.

Quick Start

Obtain a token via the Pub API and place an order using that token.

Frequently Asked Questions about pub-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate to the Pub API and get a bearer token?

To authenticate to the Pub API, you retrieve a bearer token by sending a POST request to the /api/token endpoint with your credentials, then use that token in the Authorization header for subsequent API calls.

How do I place an order using the Pub API after authentication?

You place an order on the Pub API by sending a POST request to the /api/Orders/PlaceOrder endpoint, including your valid bearer token either in the Authorization header or in the body Token field.

What is the safest way to handle Pub API credentials and tokens?

Safely handling Pub API credentials means keeping secrets in environment or runtime artifacts rather than exposing them in code, and ensuring the bearer token is placed correctly in the Authorization header or body field.

Why does my Pub API call return a 401 or 403 error?

A 401 or 403 error from the Pub API indicates an authentication or authorization failure, typically caused by an expired, missing, or invalid bearer token in your API call request.

Can I use the Pub API to programmatically place stock or equity trades?

Yes, you can use the Pub API to programmatically place stock or equity trades by authenticating to retrieve a valid token and then submitting your order details to the PlaceOrder endpoint.