Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gemini-api-node
Advanced tools
gemini-api-node is a simple node.js wrapper for Gemini REST and WebSocket API.
See detailed Changelog
npm install --save gemini-api-node
Clients for both the REST API and streaming WebSocket API are included. Private endpoints as indicated in the API docs require authentication with an API key and secret key.
import Gemini from 'gemini-api-node'
const gemini = new Gemini({ key, secret, sandbox: false })
gemini.getOrderBook('btcusd', { limit_asks: 10, limit_bids: 10 })
.then(console.log)
.catch(console.error)
import Gemini from 'gemini-api-node'
const gemini = new Gemini()
let ws = gemini.newWebSocketMarketData('btcusd', { 'top_of_book' : 'true', 'offers': true })
ws.onopen = () => {
console.log('Websocket is open')
}
ws.onmessage = (message) => {
let data = JSON.parse(message.data)
console.log('Websocket data received')
}
import Gemini from 'gemini-api-node'
const gemini = new Gemini({ key, secret, sandbox: true })
let ws = gemini.newWebSocketOrderEvents({ symbolFilter: ['btcusd'], eventTypeFilter: ['fill', 'closed']})
ws.onopen = () => {
console.log('Websocket is open')
}
ws.onmessage = (message) => {
let data = JSON.parse(message.data)
console.log('Websocket data received')
}
All methods return promises.
getAllSymbols()
getTicker(symbol)
getOrderBook(symbol, params = {})
getTradeHistory(symbol, params = {})
getCurrentAuction(symbol)
getAuctionHistory(symbol, params = {})
newOrder(params = {})
cancelOrder({ order_id })
cancelAllSessionOrders()
cancelAllActiveOrders()
getMyOrderStatus({ order_id })
getMyActiveOrders()
getMyPastTrades(params = {})
getMyTradeVolume()
getMyAvailableBalances()
newAddress(currency)
All methods return a WebSocket
object.
newWebSocketMarketData(symbol, params = {})
newWebSocketOrderEvents(params = {})
[3.1.1] - 2019-10-06
FAQs
Simple node.js wrapper for Gemini REST and WebSocket API
The npm package gemini-api-node receives a total of 0 weekly downloads. As such, gemini-api-node popularity was classified as not popular.
We found that gemini-api-node 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.