Leaders And Laggers

For a given index, this API shows the stocks with the most negative or positive sentiment scores.

Algorithmia Platform License
apl
· Internet Access

This algorithm has Internet access.

This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
· Calls Other Algorithms

This algorithm has permission to call other algorithms.

This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks, however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls.

Run an Example

Copy
Copy
{
  "Debug": null,
  "Message": "Request OK. Request OK. {0}",
  "Result": {
    "data": {
      "laggers": [
        {
          "buzz": 10,
          "industry": "Media",
          "name": "NEWS CORP",
          "nameid": "1510",
          "price_0": "11.91",
          "price_change": "+0.42%",
          "sector": "Consumer Discretionary",
          "sentiment": 1,
          "ticker": "NWSA:US",
          "volume": 6
        },
        {
          "buzz": 10,
          "industry": "Metals & Mining",
          "name": "ALCOA INC",
          "nameid": "38",
          "price_0": "9.35",
          "price_change": "-1.68%",
          "sector": "Materials",
          "sentiment": 1,
          "ticker": "AA:US",
          "volume": 10
        },
        {
          "buzz": 10,
          "industry": "Commercial Services & Supplies",
          "name": "WASTE MANAGEMENT INC",
          "nameid": "1727",
          "price_0": "61.33",
          "price_change": "+0.36%",
          "sector": "Industrials",
          "sentiment": 2,
          "ticker": "WM:US",
          "volume": 10
        },
        {
          "buzz": 10,
          "industry": "Aerospace & Defense",
          "name": "UNITED TECHNOLOGIES CORP",
          "nameid": "1255",
          "price_0": "100.76",
          "price_change": "+0.35%",
          "sector": "Industrials",
          "sentiment": 3,
          "ticker": "UTX:US",
          "volume": 4
        },
        {
          "buzz": 6,
          "industry": "Biotechnology",
          "name": "GILEAD SCIENCES INC",
          "nameid": "2897",
          "price_0": "85.82",
          "price_change": "+0.62%",
          "sector": "Health Care",
          "sentiment": 3,
          "ticker": "GILD:US",
          "volume": 3
        }
      ],
      "leaders": [
        {
          "buzz": 10,
          "industry": "Insurance",
          "name": "PRINCIPAL FINANCIAL GRP INC",
          "nameid": "9124",
          "price_0": "44.41",
          "price_change": "+0.84%",
          "sector": "Financials",
          "sentiment": 10,
          "ticker": "PFG:US",
          "volume": 3
        },
        {
          "buzz": 10,
          "industry": "Road & Rail",
          "name": "RYDER SYSTEM INC",
          "nameid": "1055",
          "price_0": "69.52",
          "price_change": "+0.46%",
          "sector": "Industrials",
          "sentiment": 9,
          "ticker": "R:US",
          "volume": 3
        },
        {
          "buzz": 6,
          "industry": "Aerospace & Defense",
          "name": "LOCKHEED MARTIN CORP",
          "nameid": "729",
          "price_0": "240.09",
          "price_change": "+0.08%",
          "sector": "Industrials",
          "sentiment": 9,
          "ticker": "LMT:US",
          "volume": 5
        },
        {
          "buzz": 10,
          "industry": "Chemicals",
          "name": "PPG INDUSTRIES INC",
          "nameid": "937",
          "price_0": "108.6",
          "price_change": "+0.84%",
          "sector": "Materials",
          "sentiment": 9,
          "ticker": "PPG:US",
          "volume": 4
        },
        {
          "buzz": 10,
          "industry": "Tobacco",
          "name": "REYNOLDS AMERICAN INC",
          "nameid": "8008",
          "price_0": "50.13",
          "price_change": "-0.56%",
          "sector": "Consumer Staples",
          "sentiment": 9,
          "ticker": "RAI:US",
          "volume": 3
        },
        {
          "buzz": 7,
          "industry": "Semiconductors & Semiconductor Equipment",
          "name": "INTEL CORP",
          "nameid": "622",
          "price_0": "31.57",
          "price_change": "+0.25%",
          "sector": "Information Technology",
          "sentiment": 9,
          "ticker": "INTC:US",
          "volume": 17
        },
        {
          "buzz": 7,
          "industry": "Household Products",
          "name": "CLOROX CO",
          "nameid": "277",
          "price_0": "129.7",
          "price_change": "+0.12%",
          "sector": "Consumer Staples",
          "sentiment": 9,
          "ticker": "CLX:US",
          "volume": 3
        },
        {
          "buzz": 8,
          "industry": "Oil, Gas & Consumable Fuels",
          "name": "CONSOL ENERGY INC",
          "nameid": "7980",
          "price_0": "14.85",
          "price_change": "-1.13%",
          "sector": "Energy",
          "sentiment": 8,
          "ticker": "CNX:US",
          "volume": 7
        },
        {
          "buzz": 10,
          "industry": "Capital Markets",
          "name": "STATE STREET CORP",
          "nameid": "1137",
          "price_0": "63.33",
          "price_change": "+0.73%",
          "sector": "Financials",
          "sentiment": 8,
          "ticker": "STT:US",
          "volume": 15
        },
        {
          "buzz": 10,
          "industry": "Internet Software & Services",
          "name": "EBAY INC",
          "nameid": "7745",
          "price_0": "24.36",
          "price_change": "+1.00%",
          "sector": "Information Technology",
          "sentiment": 8,
          "ticker": "EBAY:US",
          "volume": 14
        },
        {
          "buzz": 10,
          "industry": "Semiconductors & Semiconductor Equipment",
          "name": "NVIDIA CORP",
          "nameid": "7893",
          "price_0": "45.9",
          "price_change": "+0.55%",
          "sector": "Information Technology",
          "sentiment": 8,
          "ticker": "NVDA:US",
          "volume": 11
        },
        {
          "buzz": 6,
          "industry": "Pharmaceuticals",
          "name": "ABBVIE INC",
          "nameid": "41560",
          "price_0": "62.71",
          "price_change": "+1.31%",
          "sector": "Health Care",
          "sentiment": 8,
          "ticker": "ABBV:US",
          "volume": 3
        },
        {
          "buzz": 10,
          "industry": "Capital Markets",
          "name": "BLACKROCK INC",
          "nameid": "8168",
          "price_0": "365.09",
          "price_change": "+0.55%",
          "sector": "Financials",
          "sentiment": 7,
          "ticker": "BLK:US",
          "volume": 33
        }
      ]
    },
    "last_update": 0
  },
  "Status": "ESUCC",
  "StatusCode": 200
}
Running algorithm...

Install & Use

Use

curl -X POST -d '{"indexId":"in_9"}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/infotrie/Leaders_And_Laggers/0.2.0