
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
coin-market-apis
Advanced tools
This package is the wrapper for Coinstore API https://coinstore-openapi.github.io/en/index.html#introduction. We will include other exchanges soon.
This package is the wrapper for Coinstore API https://coinstore-openapi.github.io/en/index.html#introduction. We will include other exchanges soon.
$ npm i coin-market-apis
Add following environment varialbes in your .env file.
COIN_STORE_URL=coinstore url
COIN_STORE_SECRET_KEY=coin store secret key
COIN_STORE_API_KEY=coin store api key
NOTE: You need to whitelist your IP address in your coinstore account to access the coinstore APIs
import { CoinStore } from 'coinstore-api';
async function yourFunction() {
const coinStore = new CoinStore();
await coinStore.initializeAPI();
const assetsBalance = await coinStore.getAssetsBalance();
}
Get current orders
const data = await coinStore.getCurrentOrders();
Get current orders v2
const filters = {
symbol: '',
ordId: 0,
clOrdId: ''
};
const data = await coinStore.getCurrentOrdersV2(filters);
Get user's latest trade
const filters = {
symbol: '', // required
ordId: '',
pageNum: 1,
pageSize: 10,
side: 1
};
const data = await coinStore.getLatestTrade(filters);
Cancel order
const filters = {
symbol: '', // required
ordId: 1 // required
};
const data = await coinStore.cancelOrder(filters);
One click cancellation (Cancel all orders for the specified trading pair)
const filters = {
symbol: '', // required
};
const data = await coinStore.oneClickCancellation(filters);
Create order
const filters = {
clOrdId: '',
symbol: '', // required
side: '', // required
ordType: '', // required
timeInForce: '',
ordPrice: 0,
ordQty: 0,
ordAmt: 0,
timestamp: 0, // required
};
const data = await coinStore.createOrder(filters);
Batch ordering
const filters = {
symbol: '', // required
timestamp: 0, // required
orders: [{
clOrdId: '',
side: '', // required
ordType: '', // required
timeInForce: '',
ordPrice: 0,
ordQty: 0,
ordAmt: 0,
}]
};
const data = await coinStore.batchOrdering(filters);
Batch cancellation
const filters = {
symbol: '', // required
orderIds: [1, 2] // required
};
const data = await coinStore.batchCancellation(filters);
Get order info
const filters = {
ordId: 1
};
const data = await coinStore.getOrderInfo(filters);
Get order info v2
const filters = {
ordId: 1,
clOrdId: ''
};
const data = await coinStore.getOrderInfoV2(filters);
Currency and spot information
const filters = {
symbolCodes: ['', ''],
symbolIds: [1, 2]
};
const data = await coinStore.getSymbols(filters);
Currency information
const filters = {
currencyCode: '' // required
};
const data = await coinStore.getCurrencyInfo(filters);
Get deposit address
const filters = {
currencyCode: '', // required
chain: '' // required
};
const data = await coinStore.getDepositAddress(filters);
Get deposit history
const filters = {
currencyCode: '', // required
startDate: '',
endDate: '',
fromId: 1,
limit: 1,
externalId: '',
label: ''
};
const data = await coinStore.getDepositHistory(filters);
Get withdrawal history
const filters = {
currencyCode: '', // required
startDate: '',
endDate: '',
fromId: 1,
limit: 1,
externalId: '',
label: ''
};
const data = await coinStore.getWithdrawalHistory(filters);
Withdrawal
const filters = {
currencyCode: '', // required
amount: '', // required
address: '', // required
chainType: '', // required
tag: ''
};
const data = await coinStore.doWithdraw(filters);
Cancel withdrawal
const filters = {
withdrawId: 1, // required
};
const data = await coinStore.cancelWithdraw(filters);
Transfer fund
const filters = {
type: '', // required
currencyCode: '', // required
amount: '', // required
from: 1, // required
to: 1, // required
subAccount: ''
};
const data = await coinStore.transferFund(filters);
Get tickers
const data = await coinStore.getTickers();
Get depth
const filters = {
symbol: '', // required
depth: 0
};
const data = await coinStore.getDepth(filters);
Get K-Line
const filters = {
symbol: '', // required
period: '',
size: 0
};
const data = await coinStore.getKLine(filters);
Get latest trade
const filters = {
symbol: '', // required
period: '',
size: 0
};
const data = await coinStore.getMarketLatestTrade(filters);
Get the latest prices of of all the symbols
const filters = {
symbol: '', // required
};
const data = await coinStore.getLatestPrices(filters);
FAQs
This package is the wrapper for Coinstore API https://coinstore-openapi.github.io/en/index.html#introduction. We will include other exchanges soon.
We found that coin-market-apis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.