余额
货币 数量
BTC 0.00000000 + -
ETH 0.00000000 + -
USDTerc20 0.00000000 + -
TRX 0.00000000 + -
XRP 0.00000000 + -
DOGE 0.00000000 + -
USDCerc20 0.00000000 + -
USDTtrc20 0.00000000 + -
USDTbep20 0.00000000 + -
USD 0.00000000 + -
RUR 0.00000000 + -
Est. BTC: 0.00000000 BTC
市场
货币 价格 改变. 数量. fullname

API

序言

Public API和Trade API是很便利方法为了与第三方程序软件的交易所的相互合作。

  • Public API是为了获取那些不需要访问个人账户的信息.
  • Trade API是为了建立或取消订单,查询账户余额,都是需要获取个人账户资料的.

Public API

P现在Public API有几种相关的软件,建议程序开发人员在自己利用第二版软件开发的程序上应用最新版本,这样就可以实现新的功能.

v2

第二版Public API 软件提供得到机会: depth, fee, ticker, trades (方法).

链接有形式: https://yobit.net/api/2/匹配/方法的名称

在链接中可能出现只一个匹配.
匹配的例子 ltc_btc:

v3

第三版和第二版最基本的区别(使用方式上)就是,每次访问服务器都可能一下得到几匹配的信息,这些有用的成对信息会用破折号连接,成名单展示出来.

服务器反应每两秒缓存一次,所以太过频繁的询问是没有意义的.

可利用的方法: depth, ticker, trades, info.

链接有形式: https://yobit.net/api/3/方法的名称/ 匹配列成
每次询问可能出现几组不同的匹配信息,也可能只有一个.

方法 info没有匹配列成的参数.可以用该方法要得到现实匹配的名单.

匹配名单的例子 ltc_btc-nmc_btc:

注意! 如果我们切断了目录上某对信息,可能就API会出现错误.为了忽视这些错误可以用GET-参数 ignore_invalid.
使用例子: https://yobit.net/api/3/depth/ltc_btc-error_pair?ignore_invalid=1

info

请求例子: https://yobit.net/api/3/info

答案例子:

{
	"server_time":1418654531,
	"pairs":{
		"ltc_btc":{
			"decimal_places":8,
			"min_price":0.00000001,
			"max_price":10000,
			"min_amount":0.0001,
			"hidden":0,
			"fee":0.2
		}
		...
	}
}
  • decimal_places: 逗号后允许符号的数量
  • min_price: 允许的最低价格
  • max_price: 允许的最高价格
  • min_amount: 允许的最低余额为了买卖
  • hidden: 匹配不发现的(0或1)
  • fee: 匹配手续费

隐藏的成对信息的参数不会映射在交易所的主网页名录上,该交易还是会继续进行。
但就算切断了某组匹配信息.

ticker

在方法目录上展示出最近二十四小时内.

请求例子: https://yobit.net/api/3/ticker/ltc_btc

答案例子:

{
	"ltc_btc":{
		"high":105.41,
		"low":104.67,
		"avg":105.04,
		"vol":43398.22251455,
		"vol_cur":4546.26962359,
		"last":105.11,
		"buy":104.2,
		"sell":105.11,
		"updated":1418654531
	}
	...
}
  • high:最高价格
  • low: 最低价格
  • avg: 中间价格
  • vol: 交易量
  • vol_cur: 交易量(货币)
  • last:最后的交易的价格
  • buy: 买价格
  • sell:卖价格
  • updated:最后更新缓存

depth

方法返回关于上述的积极订单目录的信息.

GET-参数 limit 指出查询金额深度(默认值为150,最高2000)。.

请求例子: https://yobit.net/api/3/depth/ltc_btc

答案例子:

{
	"ltc_btc":{
		"asks":[
			[104.67,0.01],
			[104.75,11],
			[104.80,0.523],
			...
		],
		"bids":[
			[104.3,5.368783],
			[104.212,2.57357],
			[103.62,0.43663336],
			[103.61,0.7255672],
			...
		]
	}
	...
}
  • asks: 卖的订单
  • bids: 买的订单

trades

方法返回关于上述的积极订单目录的信息.

GET-参数limit 指出查询金额深度(默认值为150,最高2000)。.

请求例子: https://yobit.net/api/3/trades/ltc_btc

请求答案:

{
	"ltc_btc":[
		{
			"type":"ask",
			"price":104.2,
			"amount":0.101,
			"tid":41234426,
			"timestamp":1418654531
		},
		{
			"type":"bid",
			"price":103.53,
			"amount":1.51414,
			"tid":41234422,
			"timestamp":1418654530
		},
		...
	]
	...
}
  • type: ask - 卖, bid - 买
  • price: 买/卖价格
  • amount:数量
  • tid:交易的标识码
  • timestamp: unix time交易时间

Trade API

Trade API是为了建立或取消订单,查询账户余额,都是需要获取个人账户资料的.

要使用Trade API需要建立密钥在当适的章.
密钥的秘密只能在创建的一小时内查询因此创建密匙后要马上保存。密钥及秘密用于验证使用者的身份.

为了发送Trade API请求的地址: https://yobit.net/tapi/

为了每一个请求需要认证.

服务器给所有的答案为JSON格式

从服务器成功响应的一个例子:

{"success":1,"return":{%answer%}}

如果有错误,答案的例子:

{"success":0,"error":"%error%"}

认证

每个Trade API请求需要通过认证.
认证通过发送下列的HTTP- 标题:

Key - API-密钥, 例子: FAF816D16FFDFBD1D46EEF5D5B10D8A2

Sign - 数字签字, POST-参数(?param0=val0 & ...& nonce=1) 秘密密钥的签订,用HMAC-SHA512

参数 nonce (至少 1, 最多2147483646) 每个新的请求必须大于先前的请求的值。的密钥.
要取零nonce需要创建一个新密钥.

getInfo

方法返回的关于用户的余额和API密钥优惠的信息,以及服务器的时间.

要求: 密钥的优惠info

参数: 没有

答案例子:

{
	"success":1,
	"return":{
		"funds":{
			"ltc":22,
			"nvc":423.998,
			"ppc":10,
			...
		},
		"funds_incl_orders":{
			"ltc":32,
			"nvc":523.998,
			"ppc":20,
			...
		},		
		"rights":{
			"info":1,
			"trade":0,
			"withdraw":0
		},
		"transaction_count":0,
		"open_orders":1,
		"server_time":1418654530
	}
}
  • funds: 可以使用的账户的余额,(不包括在打开的订单的钱)
  • funds_incl_orders: available account balance (include money on open orders)
  • rights:密钥的优惠. 不适用withdraw(保留)
  • transaction_count: 总是 0 (旧了)
  • open_orders: 总是 0 (旧了)
  • server_time: 服务器的时间

Trade

用该方法可以建立新的订单

要求: 密钥的优惠 info&trade

参数:

  • pair: 匹配 (例子: ltc_btc)
  • type: 操作的类型 (例子: buy или sell)
  • rate: 需要买或卖的汇率(数值: 数的)
  • amount: 需要买或卖的数量(数值: 数的)

答案例子:

{
	"success":1,
	"return":{
		"received":0.1,
		"remains":0,
		"order_id":12345,
		"funds":{
			"btc":15,
			"ltc":51.82,
			"nvc":0,
			...
		}
	}
}
  • received: 多少货币买/卖
  • remains: 多少货币还需要买/卖
  • order_id: ID建立的订单
  • funds: 余额,请求后

ActiveOrders

方法返回的关于上述的积极订单目录的信息

要求:密钥的优惠info

参数:

  • pair: 匹配 (例子: ltc_btc)

答案匹配:

{
	"success":1,
	"return":{
		"100025362":{
			"pair":"ltc_btc",
			"type":"sell",
			"amount":21.615,
			"rate":0.258,
			"timestamp_created":1418654530,
			"status":0
		},
		...
	}
}
  • 数组的密钥: ID订单 (例子: 100025362)
  • pair: 匹配 (例子: ltc_btc)
  • type: 操作的类型 (例子: buysell)
  • amount: 还要买或卖
  • rate:买或卖的价格
  • timestamp_created: 建立订单的时间
  • status: 总是 0 (陈旧)

OrderInfo

方法返回指定订单的细节信息

要求: 密钥的优惠 info

参数:

  • order_id: 订单的ID (数值: 数的)

例子:

{
	"success":1,
	"return":{
		"100025362":{
			"pair":ltc_btc,
			"type":sell,
			"start_amount":13.345,
			"amount":12.345,
			"rate":485,
			"timestamp_created":1418654530,
			"status":0
		}
	}
}
  • 数组的密钥: 订单的ID (在例子中: 100025362)
  • pair: 订单匹配 (例子: ltc_btc)
  • type: 订单类型 (例子: buysell)
  • start_amount: 建立时订单原来的总额
  • amount: 根据订单还要买或卖
  • rate:买或卖的价格
  • timestamp_created: 建立订单时
  • status: 0 - 激活, 1 - 执行了及关闭, 2 - 取消, 3 - 取消,但一半执行了.

CancelOrder

方法取消指定的订单

要求:密钥的优惠info&trade

参数:

  • order_id: 订单的ID(数值: 数的)

例子:

{
	"success":1,
	"return":{
		"order_id":100025362,
		"funds":{
			"btc":15,
			"ltc":51.82,
			"nvc":0,
			...
		}
	}
}
  • order_id:订单的ID
  • funds:请求后实现的余额

TradeHistory

方法返回交易的历史。

要求: 密钥的优惠 info

参数:

  • from: 交易号,开始提款(数值: 数的, 默认: 0)
  • count:提款交易的数量(数值: 数的,默认: 1000)
  • from_id: ID交易, 开始提款(数值: 数的, 默认: 0)
  • end_id: ID交易, 结束提款 (数值: 数的, 默认: )
  • order: 提款时分类 (数值: ASCDESC, 默认: DESC)
  • since: 从什么时候开始提款(数值: unix time, 默认: 0)
  • end: 什么时候结束提款(数值: unix time, 默认: )
  • pair: 匹配 (例子: ltc_btc)

使用参数时sinceend, 参数 order自动接收数值ASC.

使用参数时since,最大的期限,您可以得到历史是一个星期..

例子:

{
	"success":1,
	"return":{
		"24523":{
			"pair":"ltc_btc",
			"type":"sell",
			"amount":11.4,
			"rate":0.145,
			"order_id":100025362,
			"is_your_order":1,
			"timestamp":1418654530
		}
		...
	}
}
  • 数组的密钥: 交易的ID (在例子中: 24523)
  • pair: 匹配 (例子: ltc_btc)
  • type: 订单类型 (例子: buysell)
  • amount: 已买或卖的数量
  • rate: 买或卖的价格
  • order_id: ID订单
  • is_your_order:该订单是您的吗 (1或 0)
  • timestamp: 交易时

GetDepositAddress

Method returns deposit address.

Requirements: priviledges of key deposits

Parameters:

  • coinName: ticker (example: BTC)
  • need_new: value: 0 or 1, on default: 0

Example of response:

{
	"success":1,
	"return":{
		"address": 1UHAnAWvxDB9XXETsi7z483zRRBmcUZxb3,
		"processed_amount": 1.00000000,		
		"server_time": 1437146228
	}
}

WithdrawCoinsToAddress

Method creates withdrawal request.

Requirements: priviledges of key withdrawals

Parameters:

  • coinName: ticker (example: BTC)
  • amount: amount to withdraw
  • address: destination address

Example of response:

{
	"success":1,
	"return":{
		"server_time": 1437146228
	}
}

CreateYobicode

Method allows you to create Yobicodes (coupons).

Method alias: CreateCoupon

Requirements: priviledges of key withdrawals

Parameters:

  • currency: ticker (example: BTC)
  • amount: amount of yobicode

Example of response:

{
	"success":1,
	"return":{
		"coupon": "YOBITUZ0HHSTBCOH5F6EAOENCRD8RGOQX3H01BTC",
		"transID": 1,	
		"funds":{
			"btc":15,
			"ltc":51.82,
			"nvc":0,
			...
		}
	}
}
  • coupon: Yobicode
  • transID: always 1 for compatibility with api of other exchanges
  • funds: balances active after request

RedeemYobicode

Method is used to redeem Yobicodes (coupons).

Method alias: RedeemCoupon

Requirements: priviledges of key deposits

Parameters:

  • coupon: yobicode to redeem (example: YOBITUZ0HHSTB...OQX3H01BTC)

Example of response:

{
	"success":1,
	"return":{
		"couponAmount": "1.2345",
		"couponCurrency": "BTC",
		"transID": 1,	
		"funds":{
			"btc":15,
			"ltc":51.82,
			"nvc":0,
			...
		}
	}
}
  • couponAmount: The amount that has been redeemed.
  • couponCurrency: The currency of the yobicode that has been redeemed.
  • transID: always 1 for compatibility with api of other exchanges
  • funds: balances active after request

Defi Public API

Example of request all pools:
https://yobit.net/api/defi/info

Example of request specific pools:
https://yobit.net/api/defi/info/btc_usdt-yo_btc

Example of response:

{
	"server_time":1418654531,
	"pools":{
		"usdt_spitz":{
			"liq1":"45540230.71160736",
			"liq2":"230.12172671",
			"price1":"0.00000505",
			"price2":"197896.26717427",
			"fee":"0.003",
			"price24high1":"0.00000512",
			"price24low1":"0.00000505",
			"price24high2":"197898.16740049",			
			"price24low2":"195199.11794729",
			"vol1":"47.57434935",			
			"vol2":"2.61017416",
			"algo1":"erc20",
			"tokenid1":"0xdac17f958d2ee523a2206206994597c13d831ec7",
			"algo2":"bep20",
			"tokenid2":"0x9d1d63501e3490aeedf0dba24f60c29918caf965",

		}
		...
	}
}
  • liq1: liquidity providers invested currency 1 in the pool
  • liq2: liquidity providers invested currency 2 in the pool
  • price1: actual price 1
  • price2: actual price 2
  • fee: in % (0.003 means 0.3%)
  • price24high1: the highest price 1 at last 24 hours
  • price24low1: the lowest price 1 at last 24 hours
  • price24high2: the highest price 2 at last 24 hours
  • price24low2: the lowest price 2 at last 24 hours
  • vol1: volume of swaps in currency 1 at last 24 hours
  • vol2: volume of swaps in currency 2 at last 24 hours
  • algo1: erc20, trc20, bep20 or SHA256/Scrypt/X11
  • tokenid1: currency 1 token address for erc20, trc20, bep20 algos or empty for others
  • algo2: erc20, trc20, bep20 or SHA256/Scrypt/X11
  • tokenid2: currency 2 token address for erc20, trc20, bep20 algos or empty for others

Hidden pools are not shown in the list at Exchange home page.
In case if any pair is disabled it disappears from the list.

DefiSwapInfo

Method is used to get info about Swap before processing of it with DefiSwap function.

Requirements: priviledges of key info&trade

Parameters:

  • pool: pool name in format cur1_cur2 (example: btc_usdt)
  • PayCurrency: currency that you pay for swap. It should be cur1 OR cur2 (example: usdt)
  • PayAmount: amount that you pay for swap (example: 1.123)

Example of response:

{
	"success":1,
	"swap_made":0,
	"info":{
		"desc": "SWAP 1.12300000 USDT to 0.00002567 BTC with price 43732.86034952",
		"pay_amount": "1.12300000",
		"pay_currency": "USDT",
		"get_amount": "0.00002567",
		"get_currency": "BTC",
		"price_of_swap": "43732.86034952",
		"fee_total": "0.00000007",
		"fee_total_currency": "BTC",
		"price1_before": "43601.61783433",
		"price1_after": "43601.70585432",
		"price2_before": "0.00002293",
		"price2_after": "0.00002294",
	}
}
  • swap_made: is always 0. It shows that swap hasn't been processed.
  • pay_amount: amount that you pay for swap
  • pay_currency: currency that you pay for swap
  • get_amount: amount that you get during swap
  • get_currency: currency that you get during swap
  • price_of_swap: price of swap
  • fee_total: amount of fee
  • fee_total_currency: currency of fee
  • price1_before: actual price 1 of pool before swap
  • price1_after: actual price 2 of pool before swap
  • price2_before: shows what the price 1 would be if the swap processed
  • price2_after: shows what the price 2 would be if the swap processed

DefiSwap

Method is used to make Swaps.

Requirements: priviledges of key info&trade

Parameters:

  • pool: pool name in format cur1_cur2 (example: btc_usdt)
  • PayCurrency: currency that you pay for swap. It should be cur1 OR cur2 (example: usdt)
  • PayAmount: amount that you pay for swap (example: 1.123)

Example of response:

{
	"success":1,
	"swap_made":0,
	"info":{
		"desc": "SWAP 1.12300000 USDT to 0.00002567 BTC with price 43732.86034952",
		"pay_amount": "1.12300000",
		"pay_currency": "USDT",
		"get_amount": "0.00002567",
		"get_currency": "BTC",
		"price_of_swap": "43732.86034952",
		"fee_total": "0.00000007",
		"fee_total_currency": "BTC",
		"price1_before": "43601.61783433",
		"price1_after": "43601.70585432",
		"price2_before": "0.00002293",
		"price2_after": "0.00002294",
	},
	"user":{
		"new_balance1": "12.07789855",
		"new_balance1_currency": "BTC",
		"new_balance2": "497908.66928976",
		"new_balance2_currency": "USDT",
		"pooled1": "1.07518709",
		"pooled2": "46729.28782075",
		"pooled_est": "$93,233.91955017",
		"pooled_pr": "2.1456",
		"comfee1": "4.1894",
		"comfee2": "625.3309128",
		"comfee_est": "$1,207.09775086",
	}	
}
  • pay_amount: amount that you pay for swap
  • pay_currency: currency that you pay for swap
  • get_amount: amount that you get during swap
  • get_currency: currency that you get during swap
  • price_of_swap: price of swap
  • fee_total: amount of fee
  • fee_total_currency: currency of fee
  • price1_before: actual price 1 of pool before swap
  • price1_after: actual price 2 of pool before swap
  • price2_before: shows what the price 1 would be if the swap processed
  • price2_after: shows what the price 2 would be if the swap processed
  • new_balance1: your new balance of currency 1 after swap
  • new_balance1_currency: currency 1 name
  • new_balance2: your new balance of currency 2 after swap
  • new_balance2_currency: currency 2 name
  • pooled1: your part of currency 1 in defi pool
  • pooled2: your part of currency 2 in defi pool
  • pooled_est: estimated amount of pooled1+pooled2 in USD
  • pooled_pr: your percentage of defi pool (example: 2.1456 means 2.1456%)
  • comfee1: fees earned (cumulative of currency 1)
  • comfee2: fees earned (cumulative of currency 2)
  • comfee_est: estimated amount of comfee1+comfee2 in USD
聊天室

AlexeChe: полиглот пряма

SPB667: пылеглот

Mohamednajai L1: 你们好吗

Mohamednajai L1: 美好的交易日

mandobro: 两千九新搬迁

mandobro: 無極石

Dent77 L0: 了

mandobro: 特朗普“失去”岛

mandobro: >: 4 8 15 16 23 42

Vladickk123: When airdrop?)

Vladickk123: Mohamednajai, hello

Vladickk123: Hi

ahmedfox7 L0: Transfer from cold storage What does this message mean in the cloud?

ahmedfox7 L0: Anyone tell me what's going on?

lbrahim90 L0: hvnbnb.

lbrahim90 L0: gc nj. bbfv nk n.

lbrahim90 L0: b, nn vjmohc. nn. bnm

lbrahim90 L0: ahmedfox7, how do you do?

lbrahim90 L0: Vladickk123, hi hello

lbrahim90 L0: ahmedfox7, yyes ok man

lbrahim90 L0: Ammar123a, hello how are you

lbrahim90 L0: ahmedfox7, when airdrop

lbrahim90 L0: ahmedfox7, how i know is anime boku no yaieba?

lbrahim90 L0: ayob ais been are you no?

lbrahim90 L0: malik you stubed

lbrahim90 L0: jayenge05, what is your name.

lbrahim90 L0: jayenge05, i kno you

lbrahim90 L0: hi may name ais

lbrahim90 L0: mandobro, hi hello go out

lbrahim90 L0: is am are you eaht

lbrahim90 L0: Vladickk123, been nor are be

lbrahim90 L0: ahmedfox7, bbeeno vg lala ase

lbrahim90 L0: Vladickk123, kiil oout are you

lbrahim90 L0: hello hi ay name ai 2

lbrahim90 L0: Vladickk123, i dont no3

lbrahim90 L0: Vladickk123, mohammmed na6

lbrahim90 L0: YOschk1nKot, hi my name 8

lbrahim90 L0: ahmedfox7, my name is ahmed rageh 9

lbrahim90 L0: ahmo nahe hakae 10

lbrahim90 L0: mandobro, what is your name 11

lbrahim90 L0: ggaher anaser mota anaeez 12

lbrahim90 L0: ahmedfox7, hi mai hhhh no 13

lbrahim90 L0: lbrahim90, yes this is 14

lbrahim90 L0: mandobro, whhat is this? 15

lbrahim90 L0: Vladickk123, hi my name is yoir name 16

lbrahim90 L0: Vladickk123, hi hello 17

lbrahim90 L0: Vladickk123, yes yes are you 18

lbrahim90 L0: lbrahim90, amged are no19 no mother

lbrahim90 L0: godbye let me

lbrahim90 L0: hicb. v