
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@injectivelabs/spot-consumer
Advanced tools
Spot Trading on Injective Protocol made easy. Can be reused throughout Injective's projects.
A convenient way to consume Spot Markets
yarn add @injectivelabs/spot-consumer
This package is a TypeScript wrapper around the GRPC API provided by our Injective Exchange for spot markets.
The package is split between two separate concerns, "consumers" and "transformers". With the "consumers" we are making GRPC API calls to the Injective Exchange, and with the "transformers" we are transforming the data from a protobuf message to a plain TypeScript object that can be used more conveniently.
// file: index.ts
import { SpotMarketConsumer, SpotMarketTransformer } from "@injectivelabs/spot-consumer"
const endpoint = '' // Exchange API endpoint
const spotMarketConsumer = new SpotMarketConsumer(endpoint)
(async() => {
const markets = SpotMarketTransformer.marketsToUiMarkets(await spotMarketConsumer.fetchMarkets()) // returns UiSpotMarket[]
console.log(markets)
})()
Contribution guides and practices will be available once there is a stable foundation of the whole package set within the injective-ts repo.
Reach out to us at one of the following places!
injectiveprotocol.com@InjectiveLabsFAQs
Spot Trading on Injective Protocol made easy. Can be reused throughout Injective's projects.
The npm package @injectivelabs/spot-consumer receives a total of 5 weekly downloads. As such, @injectivelabs/spot-consumer popularity was classified as not popular.
We found that @injectivelabs/spot-consumer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.