API for developers Software and Indian copier

Lifetime software and Indian copier API

Copier software API for the apps on your own PC: their catalogue, demo keys, orders, licence keys and accounts, and the Indian copier's relay.

Lifetime software and the Indian copier

The apps that run on your own PC - the Lifetime Software and the Indian copier (Indian brokers trade from your own PC, as SEBI asks): their catalogue, demo keys, orders, licence keys and accounts.

curl -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/software/catalog   # what there is, and its price
curl -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/software           # your licences
curl -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/indian             # the Indian copier: your keys and relay

Further reading: SEBI's circular on retail algo trading.

Endpoints in this guide

Base address https://tpcopier.com. Send your key with every request - Authorization: Bearer tpc_... - up to 120 requests a minute. Open an endpoint for its fields, its answers and an example.

shopPlans, bills, orders and licences
GET/api/v1/softwareSoftware

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/software"
GET/api/v1/software/catalogSoftware Catalog

The Software page: every app listed (switched on and downloadable) - MetaTrader first, binary last - and every app the customer has a key for, with the keys and the orders.

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/software/catalog"
POST/api/v1/software/ordersBuy

Request body

{
  "extra_accounts": 0,
  "accept_no_refund": false,
  "method": "binance",
  "product": "lifetime"
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"extra_accounts": 0, "accept_no_refund": false, "method": "binance", "product": "lifetime"}' \
     "https://tpcopier.com/api/v1/software/orders"
POST/api/v1/software/licences/{lid}/accountsBuy Accounts

Parameters

lid *pathinteger

Request body

{
  "accounts": 1,
  "accept_no_refund": false,
  "method": "binance"
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"accounts": 1, "accept_no_refund": false, "method": "binance"}' \
     "https://tpcopier.com/api/v1/software/licences/{lid}/accounts"
GET/api/v1/software/orders/{ref}Order Status

Parameters

ref *pathstring

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/software/orders/{ref}"
POST/api/v1/software/licences/{lid}/keyReveal Key

Parameters

lid *pathinteger

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/software/licences/{lid}/key"
GET/api/v1/indianIndian

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/indian"
GET/api/v1/indian/relayIndian Relay

The address the Indian TeleCopier collects WhatsApp / Discord messages from.

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/indian/relay"
POST/api/v1/indian/relay/newIndian Relay New

A new address: the old one stops at once - paste the new one into the software.

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/indian/relay/new"
POST/api/v1/indian/ordersIndian Buy

Request body

{
  "product": "",
  "accept_no_refund": false,
  "method": "binance",
  "extra_accounts": 0
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"product": "", "accept_no_refund": false, "method": "binance", "extra_accounts": 0}' \
     "https://tpcopier.com/api/v1/indian/orders"
POST/api/v1/indian/demoIndian Take Demo

Request body

{
  "product": "",
  "accept_no_refund": false,
  "method": "binance",
  "extra_accounts": 0
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"product": "", "accept_no_refund": false, "method": "binance", "extra_accounts": 0}' \
     "https://tpcopier.com/api/v1/indian/demo"
POST/api/v1/software/demoTake Demo

Request body

{
  "product": "lifetime"
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"product": "lifetime"}' \
     "https://tpcopier.com/api/v1/software/demo"
POST/api/v1/licence/activateLicence Activate

Called by TPcopier running on a customer's PC or VPS: on activation, and once a day for a fresh token. Refusals carry a code the copy can act on.

Request body

{
  "key": "",
  "machine_id": "",
  "machine_name": "",
  "app_version": ""
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"key": "", "machine_id": "", "machine_name": "", "app_version": ""}' \
     "https://tpcopier.com/api/v1/licence/activate"
GET/api/v1/licence/pubkeyLicence Pubkey

Responses

200 Successful Response · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/licence/pubkey"