Torus Digital Open API
  • Introduction
  • Get Started
  • Authentication
    • Login
    • Session Token
  • SDK
    • Self Generated SDK'S
  • Orders
    • Order Entry
    • Order Modify
    • Order Cancel
    • Order Convert To delivery
    • Order Margin
    • Order Book
    • Order Details
  • Holdings and Portfolio
    • Portfolio
    • Holding
    • Holding Details
    • Net Positions
  • Market
    • Market Status
  • Trade
    • Trade Book
    • Trade Details
  • Funds
    • Fund limits
    • Fund limits details
  • Historical Data
    • Search Stock
    • Company Basic Detail
    • Indices List
    • Monthly/Yearly Returns
    • Share Holding Pattern
    • Balance Sheet
    • Cash Flow
    • Profit and Loss
Powered by GitBook
On this page
  1. Historical Data

Cash Flow

This API retrieves the cash flow statement of a company based on the provided company code (cocode) and report type (reportType), such as S (Single) or C (Consolidated). The response includes the cash flow activities for several fiscal years, categorized into operating, investing, and financing activities.

Note: cocode can be obtained from the Search Stock or Company Basic Detail API.

Endpoint

https://connects.torusdigital.com/api/v1/cashflow/{cocode}/{reportType}

Request Parameter

Name
Mandatory
Description

cocode

Y

The unique company code identifier.

reportType

Y

The type of report to retrieve. Report type (S - Single or C - Consolidated)

Request

cURL
curl -X 'GET' \
  'https://connects.torusdigital.com/api/v1/cashflow/{cocode}/{reportType}' \
  -H 'accept: application/json'
Java-Unirest
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://connects.torusdigital.com/api/v1/cashflow/{cocode}/{reportType}")
  .header("Content-Type", "application/json")
  .asString();
Go-Native
package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"strings"
)

func main() {
	url := "https://connects.torusdigital.com/api/v1/cashflow/{cocode}/{reportType}"
	method := "GET"

	client := &http.Client{}
	req, err := http.NewRequest(method, url, nil)

	if err != nil {
		fmt.Println(err)
		return
	}
	req.Header.Add("Content-Type", "application/json")

	res, err := client.Do(req)
	if err != nil {
		fmt.Println(err)
		return
	}
	defer res.Body.Close()

	body, err := ioutil.ReadAll(res.Body)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(string(body))
}
JavaScript-jQuery
var settings = {
  "url": "https://connects.torusdigital.com/api/v1/cashflow/{cocode}/{reportType}",
  "method": "GET",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

Response

[
  {
    "COLUMNNAME": "Net Cash from Operating Activities",
    "YearData": {
      "Y202003": 77533,
      "Y202103": -512,
      "Y202203": 67491,
      "Y202303": 55340,
      "Y202403": 73998
    }
  },
  {
    "COLUMNNAME": "Net Cash used in Investing Activities",
    "YearData": {
      "Y202003": -143583,
      "Y202103": 74257,
      "Y202203": -45315,
      "Y202303": -8678,
      "Y202403": -38292
    }
  },
  {
    "COLUMNNAME": "Net Cash used in Financing Activities",
    "YearData": {
      "Y202003": 70767,
      "Y202103": -76657,
      "Y202203": -6035,
      "Y202303": -7369,
      "Y202403": -27465
    }
  }
]

Response Parameter

Parameters
Description

COLUMNNAME

Describes the type of cash flow activity (e.g., Operating, Investing, Financing).

YearData

A key-value pair containing the year (Yyyyy03) as the key and the corresponding financial value.

Y20XX03

Financial data for the fiscal year ending in March 20XX.

PreviousBalance SheetNextProfit and Loss

Last updated 8 months ago