Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
stocks_exchange_api_client
Advanced tools
STEX (former Stocks.Exchange) provides all the core exchange functionality, and additional merchant tools available via the HTTP API where all returned messages are in JSON. It's much easier to work with the API by using one of the clients provided by STEX, so while this page describes the API in case you want or need to build your own client, the examples use the Ruby client.
The base URL for all the requests other than public methods is
https://api3.stex.com
To get started with the Ruby API client, here's a snippet for creating a client with existing credentials:
In order to use the API functions, you must have an API key and API secret, which is generated in the user profile.
gem install stocks_exchange_api_client
After install use for example this code!
StocksExchangeApiClient.configure do |conf|
conf.url = 'https://api3.stex.com'
conf.option = {
client_id: '',
client_secret: '',
token_object: {
access_token: '',
refresh_token: ''
},
access_token_url: 'https://api3.stex.com/oauth/token',
scope: 'trade profile reports withdrawal'
}
end
puts StocksExchangeApiClient::PrivateApiV3.profile_info
StocksExchangeApiClient.configure do |conf|
conf.s2s = true
conf.option = {
token_object: {
access_token: '<access_token>',
},
scope: 'profile trade withdrawal reports push settings'
}
end
puts StocksExchangeApiClient::PrivateApiV3.profile_info
profile_info() // Get general information about the current user.
wallets() // Get a list of user wallets.
wallets_by_id() // Single wallet information
add_wallets_by_currency_id() // Create a wallet for given currency
get_wallets_address() // Get deposit address for given wallet
new_wallets_address() // Create new deposit address
deposits() // Get a list of deposits made by user
deposits_by_id() // Get deposit by id
withdrawals() // Get a list of withdrawals made by user
withdrawals_by_id() // Get withdrawal by id
add_withdrawal() // Create withdrawal request
cancel_withdrawal_by_id() // Cancel unconfirmed withdrawal
reports_orders() // Get past orders
reports_orders_by_id() // Get specified order details
all_trading_orders() // List your currently open orders
delete_all_trading_orders() // Delete all active orders
trading_orders_by_pair() // List your currently open orders for given currency pair
delete_trading_orders_by_pair() // Delete active orders for given currency pair
add_trading_orders_by_pair() // Create new order and put it to the orders processing queue
trading_order_by_id() // Get a single order
delete_trading_order_by_id() // Cancel order
currencies() // Available Currencies
currencies_by_id() // Get currency info
markets() // Available markets
pairs_list_by_code() // Available currency pairs
pairs_list_by_id() // Get currency pair information
ticker() // Tickers list for all currency pairs
ticker_by_pair_id() // Ticker for currency pair
trades() // Trades for given currency pair
orderbook_by_pair_id() // Orderbook for given currency pair
chart() // A list of candles for given currency pair
ping() // Test API is working and get server time
FAQs
Unknown package
We found that stocks_exchange_api_client 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.