修改ip和端口

This commit is contained in:
2026-07-07 13:51:56 +08:00
parent ef00cf5a95
commit 8e8aece816
3 changed files with 12 additions and 12 deletions
+9 -9
View File
@@ -8,7 +8,7 @@
| 项目 | 值 |
|------|-----|
| 地址 | `http://192.140.180.73:8080` |
| 地址 | `http://61.164.252.86:13485` |
| 认证 | `X-API-Key` Header 或 `?key=` URL 参数 |
| 格式 | 所有返回均为 JSON |
@@ -19,7 +19,7 @@
```python
import requests
BRIDGE = "http://192.140.180.73:8080"
BRIDGE = "http://61.164.252.86:13485"
KEY = "your-api-key"
def api(path, params=None):
@@ -416,7 +416,7 @@ import pandas as pd
import time
from datetime import datetime
BRIDGE = "http://192.140.180.73:8080"
BRIDGE = "http://61.164.252.86:13485"
KEY = "your-api-key"
class Mt5Bridge:
@@ -553,9 +553,9 @@ if __name__ == "__main__":
在浏览器地址栏直接输入:
```
http://192.140.180.73:8080/health?key=your-api-key
http://192.140.180.73:8080/account?key=your-api-key
http://192.140.180.73:8080/symbols/XAUUSDc/tick?key=your-api-key
http://61.164.252.86:13485/health?key=your-api-key
http://61.164.252.86:13485/account?key=your-api-key
http://61.164.252.86:13485/symbols/XAUUSDc/tick?key=your-api-key
```
---
@@ -564,9 +564,9 @@ http://192.140.180.73:8080/symbols/XAUUSDc/tick?key=your-api-key
```powershell
$key = "your-api-key"
Invoke-RestMethod "http://192.140.180.73:8080/health?key=$key"
Invoke-RestMethod "http://192.140.180.73:8080/account?key=$key"
Invoke-RestMethod "http://192.140.180.73:8080/symbols/XAUUSDc/tick?key=$key"
Invoke-RestMethod "http://61.164.252.86:13485/health?key=$key"
Invoke-RestMethod "http://61.164.252.86:13485/account?key=$key"
Invoke-RestMethod "http://61.164.252.86:13485/symbols/XAUUSDc/tick?key=$key"
```
---
+2 -2
View File
@@ -157,7 +157,7 @@ Start-ScheduledTask -TaskName "Mt5Bridge"
| 字段 | 值 |
|------|-----|
| 类型 | TCP |
| 公网端口 | 8080 |
| 公网端口 | 13485 |
| 内网端口 | 8080 |
| 说明 | Mt5Bridge |
@@ -166,7 +166,7 @@ Start-ScheduledTask -TaskName "Mt5Bridge"
如果云服务商不自动放通,手动添加防火墙规则:
```powershell
New-NetFirewallRule -Name "Mt5Bridge" -DisplayName "Mt5Bridge 8080" -Direction Inbound -Protocol TCP -LocalPort 8080 -Action Allow
New-NetFirewallRule -Name "Mt5Bridge" -DisplayName "Mt5Bridge 13485" -Direction Inbound -Protocol TCP -LocalPort 13485 -Action Allow
```
---
+1 -1
View File
@@ -2,7 +2,7 @@ import requests
import time
import statistics
BRIDGE = "http://192.140.180.73:8080"
BRIDGE = "http://61.164.252.86:13485"
KEY = "UiHMqtaYLZzwBdcuS4RFmEGhgDO8N2eI"
HEADERS = {"X-API-Key": KEY}