Comes back your balances sorted by account.

Comes back your balances sorted by account.

Examples

Knot.js example of how to connect to the shove API (requires autobahn): http://pastebin.com/dMX7mZE0

Shove API

The best way to get public gegevens updates on markets is via the thrust API, which thrusts live ticker, order book, trade, and Trollbox updates overheen WebSockets using the WAMP protocol. Ter order to use the shove API, connect to wss://api.yobit.com and subscribe to the desired feed.

Ticker

Ter order to receive ticker updates, subscribe to “ticker”. Updates will be te the following format:

Suitable labels for thesis gegevens are, ter order: currencyPair, last, lowestAsk, highestBid, percentChange, baseVolume, quoteVolume, isFrozen, 24hrHigh, 24hrLow

Order Book and Trades

To receive order book and trade updates, subscribe to the desired currencyPair, e.g. “BTC_XMR”. There are two types of order book updates:

Updates of type orderBookModify can be either additions to the order book or switches to existing entries. The value of ‘amount’ indicates the fresh total amount on the books at the given rate &mdash, te other words, it substitutes any previous value, rather than indicates an adjustment to a previous value.

Trade history updates are provided ter the following format:

The dictionary portion of each market message (“kwargs” te the Knot.js example) will contain a sequence number with the key “seq”. Ter order to keep your order book consistent, you will need to ensure that messages are applied ter the order of their sequence numbers, even if they arrive out of order. Te some markets, if there is no update for more than 1 2nd, a heartbeat message consisting of an empty argument list and the latest sequence number will be sent. Thesis will go out merienda vanaf 2nd, but if there is no update for more than 60 seconds, the heartbeat interval will be diminished to 8 seconds until the next update.

Several order book and trade history updates will often arrive ter a single message. Be sure to loop through the entire array, otherwise you will miss some updates.

Trollbox Messages

Te order to receive fresh Trollbox messages, subscribe to “trollbox”. Messages will be given ter the following format:

Suitable labels for thesis gegevens are, te order: type, messageNumber, username, message, reputation

Public API Methods

Please note that making more than 6 calls vanaf 2nd to the public API, or repeatedly and needlessly fetching excessive amounts of gegevens, can result ter your IP being banned.

There are six public methods, all of which take HTTP GET requests and terugwedstrijd output te JSON format:

Comebacks the ticker for all markets. Sample output:

Comes back the 24-hour volume for all markets, plus totals for primary currencies. Sample output:

Comes back the order book for a given market, spil well spil a sequence number for use with the Thrust API and an indicator specifying whether the market is frozen. You may set currencyPair to &quot,all&quot, to get the order books of all markets. Sample output:

Or, for all markets:

Comebacks the past 200 trades for a given market, or up to 50,000 trades inbetween a range specified ter UNIX timestamps by the &quot,embark&quot, and &quot,end&quot, GET parameters. Sample output:

Comes back candlestick chart gegevens. Required GET parameters are “currencyPair”, “period” (candlestick period ter seconds, valid values are 300, 900, 1800, 7200, 14400, and 86400), “begin”, and “end”. “Embark” and “end” are given te UNIX timestamp format and used to specify the date range for the gegevens returned. Sample output:

Comes back information about currencies. Sample output:

Comebacks the list of loan offers and requests for a given currency, specified by the “currency” GET parameter. Sample output:

Trading API Methods

To use the trading API, you will need to create an API key.

Please note that there is a default limit of 6 calls vanaf 2nd. If you require more than this, please consider optimizing your application using the thrust API, the “moveOrder” guideline, or the “all” parameter where suitable. If this is still insufficient, please voeling support to discuss a limit raise.

All calls to the trading API are sent via HTTP Postbode to https://yobit.com/tradingApi and vereiste contain the following headers:

  • Key – Your API key.
  • Sign – The query’s Postbode gegevens signed by your key’s “secret” according to the HMAC-SHA512 method.

Additionally, all queries voorwaarde include a “nonce” Postbode parameter. The nonce parameter is an oprecht which voorwaarde always be greater than the previous nonce used.

All responses from the trading API are te JSON format. Te the event of an error, the response will always be of the following format:

There are several methods accepted by the trading API, each of which is specified by the “guideline” Postbode parameter:

Related movie: Hướng Dẫn Mở Tài Khoản : Yobit.netwerk – Giả Hoàng Vũ 0942985279


Comebacks all of your available balances. Sample output:

Related movie: YOBIT EXCHANGE TROQUE SEUS RUBLOS E DOLLAR E MUITO MAIS…..


Comebacks all of your balances, including available cómputo, oscilación on orders, and the estimated BTC value of your oscilación. By default, this call is limited to your exchange account, set the “account” Postbode parameter to “all” to include your margin and lending accounts. Sample output:

Comes back all of your deposit addresses. Sample output:

Generates a fresh deposit address for the currency specified by the “currency” Postbode parameter. Sample output:

Only one address vanaf currency vanaf day may be generated, and a fresh address may not be generated before the previously-generated one has bot used.

Comes back your deposit and withdrawal history within a range, specified by the “embark” and “end” Postbode parameters, both of which should be given spil UNIX timestamps. Sample output:

Comes back your open orders for a given market, specified by the “currencyPair” Postbode parameter, e.g. “BTC_XCP”. Set “currencyPair” to “all” to comeback open orders for all markets. Sample output for single market:

Or, for all markets:

Comes back your trade history for a given market, specified by the “currencyPair” Postbode parameter. You may specify “all” spil the currencyPair to receive your trade history for all markets. You may optionally specify a range via “commence” and/or “end” Postbode parameters, given te UNIX timestamp format, if you do not specify a range, it will be limited to one day. You may optionally limit the number of entries returned using the “limit” parameter, up to a maximum of Ten,000. If the “limit” parameter is not specified, no more than 500 entries will be returned. Sample output:

Or, for all markets:

Comebacks all trades involving a given order, specified by the “orderNumber” Postbode parameter. If no trades for the order have occurred or you specify an order that does not belong to you, you will receive an error. Sample output:

Places a limit buy order te a given market. Required Postbode parameters are “currencyPair”, “rate”, and “amount”. If successful, the method will terugwedstrijd the order number. Sample output:

You may optionally set “fillOrKill”, “immediateOrCancel”, “postOnly” to 1. A fill-or-kill order will either pack te its entirety or be totally aborted. An immediate-or-cancel order can be partially or fully packed, but any portion of the order that cannot be packed instantly will be canceled rather than left on the order book. A post-only order will only be placed if no portion of it fills instantaneously, this ensures you will never pay the taker toverfee on any part of the order that fills.

Places a sell order te a given market. Parameters and output are the same spil for the buy method.

Cancels an order you have placed te a given market. Required Postbode parameter is “orderNumber”. If successful, the method will terugwedstrijd:

Cancels an order and places a fresh one of the same type ter a single atomic transaction, meaning either both operations will succeed or both will fail. Required Postbode parameters are “orderNumber” and “rate”, you may optionally specify “amount” if you wish to switch the amount of the fresh order. “postOnly” or “immediateOrCancel” may be specified for exchange orders, but will have no effect on margin orders. Sample output:

Instantly places a withdrawal for a given currency, with no email confirmation. Te order to use this method, the withdrawal privilege vereiste be enabled for your API key. Required Postbode parameters are “currency”, “amount”, and “address”. For XMR withdrawals, you may optionally specify “paymentId”. Sample output:

If you are enrolled te the maker-taker toverfee schedule, comebacks your current trading fees and trailing 30-day volume te BTC. This information is updated merienda every 24 hours.

Comes back your balances sorted by account. You may optionally specify the “account” Postbode parameter if you wish to fetch only the balances of one account. Please note that balances te your margin account may not be accessible if you have any open margin positions or orders. Sample output:

Comes back your current tradable balances for each currency te each market for which margin trading is enabled. Please note that thesis balances may vary continually with market conditions. Sample output:

Transfers funds from one account to another (e.g. from your exchange account to your margin account). Required Postbode parameters are “currency”, “amount”, “fromAccount”, and “toAccount”. Sample output:

Comes back a summary of your entire margin account. This is the same information you will find te the Margin Account section of the Margin Trading pagina, under the Markets list. Sample output:

Places a margin buy order ter a given market. Required Postbode parameters are “currencyPair”, “rate”, and “amount”. You may optionally specify a maximum lending rate using the “lendingRate” parameter. If successful, the method will comeback the order number and any trades instantaneously resulting from your order. Sample output:

Places a margin sell order te a given market. Parameters and output are the same spil for the marginBuy method.

Comebacks information about your margin position te a given market, specified by the “currencyPair” Postbode parameter. You may set “currencyPair” to “all” if you wish to fetch all of your margin positions at merienda. If you have no margin position ter the specified market, “type” will be set to “none”. “liquidationPrice” is an estimate, and does not necessarily represent the price at which an coetáneo compelled liquidation will occur. If you have no liquidation price, the value will be -1. Sample output:

Closes your margin position te a given market (specified by the “currencyPair” Postbode parameter) using a market order. This call will also comeback success if you do not have an open position te the specified market. Sample output:

Creates a loan opoffering for a given currency. Required Postbode parameters are “currency”, “amount”, “duration”, “autoRenew” (0 or 1), and “lendingRate”. Sample output:

Cancels a loan suggest specified by the “orderNumber” Postbode parameter. Sample output:

Comes back your open loan offers for each currency. Sample output:

Comebacks your active loans for each currency. Sample output:

Comebacks your lending history within a time range specified by the “commence” and “end” Postbode parameters spil UNIX timestamps. “limit” may also be specified to limit the number of rows returned. Sample output:

Toggles the autoRenew setting on an active loan, specified by the “orderNumber” Postbode parameter. If successful, “message” will indicate the fresh autoRenew setting. Sample output:

3 thoughts on “Comes back your balances sorted by account.

  1. Hey everybody bittrex has asked that if you have numerous support tickets to loom into your support account and delete all but your very first toegangsbewijs. Like I have said if they are indeed attempting to screw everyone sending them lots of support tickets is neither going to bother them or help you so if they are attempting to do this by hand all wij can do is attempt to speed it up by getting rid of futile tickets. Hoping for the best possible outcome

Leave a Reply

Your email address will not be published. Required fields are marked *