Bitycle Business
  1. Markets
Bitycle Business
  • Getting started
  • Bitycle Lab
    • introduction
    • Wallet as a Service(WaaS)
      • introduction
      • request Wallet(Temporary)
      • request Wallet(Permanent)
      • inquiry payment
    • Blockchain Indexer
      • introduction
      • Blockchain List
      • Contract Info
      • Get Balances
    • Security&Privacy
      • introduction
      • Check USDT Wallets Blocked
      • Get USDT blocked History
    • Node as a Service(NaaS)
      • introduction
    • Tokenization
      • introduction
    • Decentralized Storage(IPFS)
      • introduction
    • Hyperledger Services
      • introduction
  • Bitycle Cap
    • introduction
    • Coins
      • introduction
      • Coin List
      • Coin Info
      • Coin Price
      • coin exchange listings
    • Markets
      • introduction
      • Market Price
      • Markets List
        GET
      • Market Info
        GET
      • market sparklines
        GET
    • exchanges
      • introduction
      • CEX Aggregator(Buy&Sell)
        • introduction
        • get tradable markets
        • get tradable markets price
        • send otc order
        • get orders
        • get balances
      • Exchanges List
      • Exchange Info
      • Exchange Coins Listing
      • Exchange Markets Listing
  1. Markets

Market Price

wss://streamer.bitycle.com/ws/market_data
برای سابسکرایب بر روی چنل های قیمتی لازم است هنگام وصل شدن به این وب‌سوکت, هدر زیر را ست نمایید:
X-Bitycle-Token: <your_token>
سورس های پشتیبانی شده:
binance_spot
bingx_spot
bitunix_spot
bingx_perpetual
nobitex_spot
tehran_stock
tehran_cgf
alpari
lbank_spot
gate_spot
bybit_spot
kucoin_spot
ramzinex_spot
bit24_spot
mexc_spot
بعد از وصل شدن وب‌سوکت میتوان روی موارد مختلف سابسکرایب کرد که در ادامه انواع پیام های ارسالی و دریافتی برای هر نوع توضیح داده شده است:

1. market data (MD)#

کندل لایو یک مارکت با تایم فریم مشخص در سورس مشخض
# subscribe message
{
    "message_type": "subscribe_live_market",
    "data": {
        "market": "BTCUSDT",
        "tf": "1m",
        "source":"binance_spot"
    }
}
# receiving messages
{
    "d": {
        "c": [
            1747062540, # timestamp
            102910,  # open
            102910,  # high
            102825.41,  # low
            102825.41,  # close
            19.79036,  # volume
            1747062566  # issued_at
        ],
        "f": "binance_spot",
        "s": "BTCUSDT",
        "t": "1m"
    },
    "type": "md"
}

2. market price (MP)#

قیمت لایو یک مارکت در سورس مشخض
# subscribe message
{
    "message_type": "subscribe_market_price",
    "data": {
        "market": "BTCUSDT",
        "source":"gate_spot"
    }
}
# receiving messages
{
    "d": {
        "f": "gate_spot",
        "p": 102872.6,
        "s": "BTCUSDT"
    },
    "type": "mp"
}

3. all market prices (AMP):#

قیمت لایو همه مارکت های یک سورس مشخص
# subscribe message
{
    "message_type": "subscribe_all_market_prices",
    "data": {
        "source":"binance_spot"
    }
}
# receiving messages
{
    "d": {
        "f": "binance_spot",
        "p": {
            "ACTTRY": 3.05,
            "ACTUSDC": 0.0785,
            "ACTUSDT": 0.0786,
            "ACXUSDT": 0.2669,
            "ADABRL": 4.679,
            "ADAFDUSD": 0.8217,
            "ADAJPY": 121.68,
            "ADATRY": 31.84,
            ...
        }
    },
    "type": "amp"
}

4. all source price on specific market (MSP):#

قیمت همه سورس ها برای یک مارکت مشخص
# subscribe message
{
    "message_type": "subscribe_market_sources_price",
    "data": {
        "market": "BTCUSDT"
    }
}
# receiving messages
{
    "d": {
        "p": {
            "binance_futures": {
                "p": 102996.42,
                "u": 1747063513
            },
            "binance_spot": {
                "p": 102970,
                "u": 1747063509
            },
            "bingx_perpetual": {
                "p": 102970,
                "u": 1747063509
            },
            "mexc_spot": {
                "p": 103007.9,
                "u": 1747063513
            },
            "nobitex_spot": {
                "p": 102699.94,
                "u": 1747063507
            },
            "ramzinex_spot": {
                "p": 102850.10937810733,
                "u": 1747063512
            },
             ...
        },
        "s": "BTCUSDT"
    },
    "type": "msp"
}

5. all currency prices (ACP USDT based):#

قیمت ارزهای یک سورس بر پایه تتر
# subscribe message
{
    "message_type": "subscribe_all_currency_prices",
    "data": {
        "source": "binance_spot",
        "market": "USDT"
    }
}
# receiving messages
{
    "d": {
        "f": "binance_spot",
        "p": {
            "AAVE": 317.33,
            "ACA": 0.0741,
            "BTC": 102025.58,
            ...
        }
    },
    "type": "acp"
}

6. all currency prices (ACP IRT based)#

قیمت ارزهای یک سورس بر پایه تومان
# subscribe message
{
    "message_type": "subscribe_all_currency_prices",
    "data": {
        "source": "tehran_cgf",
        "market": "IRT"
    }
}
# receiving messages
{
    "d": {
        "f": "tehran_cgf",
        "p": {
            "AED": 235010,
            "AUD": 538000,
            "CAD": 600000,
            "GOLD18": 59642000,
            "GOLD24": 79522000,
            "IRCOIN1G": 100000000,
            "IRCOINBA": 642050000,
            "IRCOINEM": 689950000,
            "IRCOINNIM": 371000000,
            "IRCOINROB": 195000000,
            "JPY": 567240,
            "KWD": 2789500,
            "TRY": 24000,
            "USD": 854600
        },
        "s": "IRT"
    },
    "type": "acp"
}

Request

None
Previous
introduction
Next
Markets List
Built with