place_order
Execute buy or sell orders for cryptocurrency pairs (BTC/JPY, ETH/JPY, XYM/JPY) on the Zaif exchange by specifying price and quantity. Ideal for placing limit orders to trade digital assets.
Instructions
暗号資産の売買注文を発注します。
このツールは、指定した通貨ペアで新規の売買注文を市場に出すために使用します。
価格と数量を指定して、指値注文を出すことができます。
使用例:
- ビットコインを指定価格で購入したい場合
- イーサリアムを売却して利益を確定したい場合
- 特定の価格で指値注文を出したい場合
注意: このツールを使用するには、環境変数にAPIキーとシークレットが設定されている必要があります。
Args:
currency_pair: 取引する通貨ペア('btc_jpy': ビットコイン/円、'eth_jpy': イーサリアム/円、'xym_jpy': シンボル/円)
order_type: 注文タイプ('bid': 買い注文、'ask': 売り注文)
price: 注文価格(日本円)- 指値注文の場合の1単位あたりの価格
quantity: 注文数量 - 売買する暗号資産の量(例: ビットコインの場合は0.01BTCなど)
Returns:
OrderResponse: 注文結果情報
- filled_amount: 即時約定した数量
- unfilled_amount: 未約定の残り数量
- order_id: 注文ID(全約定の場合は0)
- balances: 注文後の各通貨の残高情報
Raises:
ValueError: 認証情報が設定されていない場合や、APIエラーが発生した場合
Input Schema
Name | Required | Description | Default |
---|---|---|---|
currency_pair | Yes | ||
order_type | Yes | ||
price | Yes | ||
quantity | Yes |
Input Schema (JSON Schema)
{
"properties": {
"currency_pair": {
"enum": [
"btc_jpy",
"eth_jpy",
"xym_jpy"
],
"title": "Currency Pair",
"type": "string"
},
"order_type": {
"enum": [
"bid",
"ask"
],
"title": "Order Type",
"type": "string"
},
"price": {
"title": "Price",
"type": "number"
},
"quantity": {
"title": "Quantity",
"type": "number"
}
},
"required": [
"currency_pair",
"order_type",
"price",
"quantity"
],
"title": "place_orderArguments",
"type": "object"
}