市场状态: 开启 服务器负载: 14/100 响应时间: 12.19 ms

外汇报价API文件

Introduction

REST API Calls


Introduction

What's available

1Forge provides real-time quote data (bid & ask) for 700+ pairs. To see a full list of supported currency pairs, please see the full currency pair list. At this time, we do not offer historical data, however, clients are more than welcome to archive our quotes locally for internal use.

By connecting directly to brokers and liquidity providers, we are able to provide data as fast as any ECN or brokerage. Depending on how active the market is, you can see price updates over 200 times per second for a single currency pair. No other quote provider in the world can match our accuracy, speed or level of service.

Server location and expected latency

1Forge currently has 4 servers worldwide: Oregon, Virginia, Taiwan, and Belgium. Your requests will automatically be routed to the one nearest to you. You can check how long it takes for your network to reach ours by pinging forex.1forge.com.

$ ping forex.1forge.com

Timestamp format

All timestamps are unix/epoch timestamps (seconds that have passed since since January 1, 1970 UTC). If you need help converting timestamps to a different format, please contact us.

WebSocket Support

While most clients chose to use our REST API, we encourage brokerages, options houses and any other clients who need every tick in real time to utilize our WebSocket streaming which is currently available with our PHP and Javascript libraries. WebSocket streaming is not available on free plans.

Libraries

We provide a few libraries for your convenience, however, it is not necessary to use them unless you plan to use WebSockets.

REST API Calls

/quotes - 获取具体货币组合的报价:

Response

/symbols - 获取符号列表:

Response

/convert - 从一种货币兑换为另一种货币:

Response

/market_status - 检查市场是否开启:

Response

/quota - 检查您当前的使用情况及剩余配额:

Response


contact@1forge.com
(347) 974-2995