fa45d8aa5f
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
Privoxy对node122:18003返回500,直连正常
24 lines
604 B
Python
24 lines
604 B
Python
#!/usr/bin/env python
|
|
# -*- coding:utf-8 -*-
|
|
"""
|
|
Date: 2019/10/20 10:58
|
|
Desc: 外汇配置文件
|
|
"""
|
|
|
|
# headers
|
|
SHORT_HEADERS = {
|
|
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
|
|
}
|
|
# url
|
|
FX_SPOT_URL = (
|
|
"http://www.chinamoney.com.cn/r/cms/www/chinamoney/data/fx/rfx-sp-quot.json"
|
|
)
|
|
FX_SWAP_URL = (
|
|
"http://www.chinamoney.com.cn/r/cms/www/chinamoney/data/fx/rfx-sw-quot.json"
|
|
)
|
|
FX_PAIR_URL = (
|
|
"http://www.chinamoney.com.cn/r/cms/www/chinamoney/data/fx/cpair-quot.json"
|
|
)
|
|
# payload
|
|
SPOT_PAYLOAD = {"t": {}}
|