[原文网址](https://connect.spotware.com/docs/available-resources/test-environment)
### 测试环境
出于测试目的,有一些先前生成的访问令牌与几个模拟账户连接,可以使用下面列出的账号/密码进行访问。 这些令牌可以随时使用。 无需申请。 它们可用于立即开始与cTrader平台的任何集成。 与生产版本相比没有差异。 以下是上述API函数(内容服务)的一些示例。
| Request | URL |
| --- | --- |
| cTrader ID profile | [https://sandbox-api.spotware.com/connect/profile?oauth\_token=test002\_access\_token](https://sandbox-api.spotware.com/connect/profile?oauth_token=test002_access_token) |
| Request for Trading Accounts, linked with cTrader ID | [https://sandbox-api.spotware.com/connect/tradingaccounts?oauth\_token=test002\_access\_token](https://sandbox-api.spotware.com/connect/tradingaccounts?oauth_token=test002_access_token) |
| Request for Trading Deals | [https://sandbox-api.spotware.com/connect/tradingaccounts/89214/deals?oauth\_token=test002\_access\_token](https://sandbox-api.spotware.com/connect/tradingaccounts/89214/deals?oauth_token=test002_access_token) |
| Cash flow operations history (deposit/withdraw) | [https://sandbox-api.spotware.com/connect/tradingaccounts/89214/cashflowhistory?oauth\_token=test002\_access\_token](https://sandbox-api.spotware.com/connect/tradingaccounts/89214/cashflowhistory?oauth_token=test002_access_token) |
| Pending orders | [https://sandbox-api.spotware.com/connect/tradingaccounts/89214/pendingorders?oauth\_token=test002\_access\_token](https://sandbox-api.spotware.com/connect/tradingaccounts/89214/pendingorders?oauth_token=test002_access_token) |
| Opened positions | [https://sandbox-api.spotware.com/connect/tradingaccounts/89214/positions?oauth\_token=test002\_access\_token](https://sandbox-api.spotware.com/connect/tradingaccounts/89214/positions?oauth_token=test002_access_token) |
| Symbols available to trader | [https://sandbox-api.spotware.com/connect/tradingaccounts/89214/symbols?oauth\_token=test002\_access\_token](https://sandbox-api.spotware.com/connect/tradingaccounts/89214/symbols?oauth_token=test002_access_token) |
以下访问令牌可用于测试和API调查任务:
| Access token | Expiration |
| --- | --- |
| test001\_access\_token | unexpired |
| test002\_access\_token | unexpired |
| test003\_access\_token | unexpired |
| test004\_access\_token | unexpired |
在测试[cTrader ID](http://help.spotware.com/ctid)后,已创建可用于调查API的帐户:
| Email | Nickname | Password |
| --- | --- | --- |
| connect@spotware.com | ConnectID | CwMJS81A |
您可以使用[cTrader ID](http://help.spotware.com/ctid)登录,和/或使用以下cTrader Web沙箱实例创建您自己的实例:
* [sandbox-ctweb.spotware.com](http://sandbox-ctweb.spotware.com/)(来自测试经纪人环境CHSANDBOX)
首选浏览器是Chrome或Firefox。
使用相同的应用程序,您可以创建测试DEMO帐户。
- 空白目录
- API Reference 2.0
- Getting Started
- Open Authentication
- Protocol Buffers
- Protobuf Messages Reference
- Open API Messages
- Open API Model Messages
- Open API Error Codes
- Example Projects .NET
- Spotware Proxy Cloud
- Getting Started in C#
- Test Environment
- Playground
- Frequently Asked Questions
- Lesson 1. Your First App
- Lesson 2. Get Trading Data
- Lesson 3. Get Market Data
- Lesson 4. Using Trading API