3.2 KiB
curl -X POST "http://127.0.0.1:20000/user/register"
-H "Content-Type: application/json"
-d '{
"account": "test",
"password": "test12341234"
}'
创建美国
curl -X POST "http://127.0.0.1:20000/country/create"
-H "Content-Type: application/json"
-d '{"name": "美国", "code": "US"}'
创建中国
curl -X POST "http://127.0.0.1:20000/country/create"
-H "Content-Type: application/json"
-d '{"name": "中国", "code": "CN"}'
创建日本
curl -X POST "http://127.0.0.1:20000/country/create"
-H "Content-Type: application/json"
-d '{"name": "日本", "code": "JP"}'
创建香港
curl -X POST "http://127.0.0.1:20000/country/create"
-H "Content-Type: application/json"
-d '{"name": "香港", "code": "HK"}'
创建美国
curl -X POST "http://127.0.0.1:20000/currency/create"
-H "Content-Type: application/json"
-d '{"name": "美元", "code": "USD"}'
创建中国
curl -X POST "http://127.0.0.1:20000/currency/create"
-H "Content-Type: application/json"
-d '{"name": "人民币", "code": "CNY"}'
创建日本
curl -X POST "http://127.0.0.1:20000/currency/create"
-H "Content-Type: application/json"
-d '{"name": "日元", "code": "JPY"}'
创建香港
curl -X POST "http://127.0.0.1:20000/currency/create"
-H "Content-Type: application/json"
-d '{"name": "港币", "code": "HKD"}'
创建郑州商品交易所
curl -X POST http://127.0.0.1:20000/exchange/create
-H "Content-Type: application/json"
-d '{
"name": "郑州商品交易所",
"short_name": "郑商所",
"code": "CZCE"
}'
创建上海证券交易所
curl -X POST http://127.0.0.1:20000/exchange/create
-H "Content-Type: application/json"
-d '{
"name": "上海证券交易所",
"short_name": "上交所",
"code": "SSE"
}'
创建深圳证券交易所
curl -X POST http://127.0.0.1:20000/exchange/create
-H "Content-Type: application/json"
-d '{
"name": "深圳证券交易所",
"short_name": "深交所",
"code": "SZSE"
}'
创建上海期货交易所
curl -X POST http://127.0.0.1:20000/exchange/create
-H "Content-Type: application/json"
-d '{
"name": "上海期货交易所",
"short_name": "上期所",
"code": "SHFE"
}'
创建中国金融期货交易所
curl -X POST http://127.0.0.1:20000/exchange/create
-H "Content-Type: application/json"
-d '{
"name": "中国金融期货交易所",
"short_name": "中金所",
"code": "CFFEX"
}'
创建大连商品期货交易所
curl -X POST http://127.0.0.1:20000/exchange/create
-H "Content-Type: application/json"
-d '{
"name": "大连商品交易所",
"short_name": "大商所",
"code": "DCE"
}'
创建广州期货交易所
curl -X POST http://127.0.0.1:20000/exchange/create
-H "Content-Type: application/json"
-d '{
"name": "广州期货交易所",
"short_name": "广期所",
"code": "GFEX"
}'