MultiMarkets API Docs en
HomeGitHubReferenceLanguage
  • Overview
  • Quick Start
    • Status
  • CLIENT API
    • Overview
    • Access
      • Sign
      • Request
      • Limit
      • Error Code
      • API Address
      • API Code
    • Login
      • Captcha
    • Customer
      • Customer registration
      • Replacement Token
      • API Management
        • Apply API
        • Set permissions
        • Delete API
    • Market Data
      • Introduction
      • Limit
      • Error Code
      • Subscribe
        • Ticker
        • Market
        • Cancel
      • Query
        • Heartbeat
        • Historical K-line
    • Open API
      • Readme
        • Sign
        • Request
        • Error Code
        • API Address
      • Order Process
      • Base
        • Symbol Base Info
      • Customer
        • Customer Info
      • Trade
        • Contract order
      • Message
        • Get Msg Token
        • Msg Subscribe
        • Get Msg Token
        • Msg Subscribe
      • More...
    • Auth2 API
      • Readme
      • Auth Code
      • Access Token
      • User Info
      • Refresh Token
    • More...
  • Manager API
    • Overview
    • Access
      • Sign
      • Request
      • Limit
      • Error Code
      • API Address
      • API Code
    • Authorize
    • Basic data
      • Universal dictionaries
      • Company currency
    • Product
      • Product List
    • Customer
      • Customer List
      • Customer registration
      • Customer info
      • Customer Group
      • Account Info
    • Funds
      • Balance Update
      • Get Balance
    • Data Push
    • More...
  • Bridge API
    • Overview
    • Access Instructions
      • Illustrate
      • Sign
      • Request
      • Speed ​​Limit
      • Error Code
      • Product List
    • Basic data
      • Get a list of universal dictionaries
      • Obtain company currency permissions
    • Product Data
      • Product information list
      • Product rule list
    • Customer Management
      • Customer registration
      • Customer list
      • Customer details
      • Customer account cancellation
    • Account Management
      • Add account
      • Update account
      • Check account
      • Delete account
    • Trading interface
      • Check balance
      • Check deposit records
      • Check withdrawal records
      • Query transfer records
      • Place an order
      • Query order
      • Order list
      • Transaction record
      • Current pending order
      • Cancel order
    • News Subscription
      • Notification message description
      • Webhook subscription
      • Information callback notification
  • Webhook API
    • Overview
    • Account balance
    • Execute adjustment balance
    • Cancel adjustment balance
  • Message API
    • Overview
    • Custom message API
  • WEB IFRAME
    • Introduction
    • Process description
  • FAQ
    • How to apply for apikey for an interface?
    • What is the purpose of the public key?
    • What is the interface request timeout?
    • Supported development languages?
    • What are the API call restrictions?
    • How to use APIs more safely?
  • API Reference
    • Manager API
    • Client API
  • CHANGELOGS
    • API
Powered by GitBook
On this page
  • 1.Interface address=>HTTP
  • 1.2 Request
  • 1.2 Interface address=>websocket
  1. CLIENT API
  2. Access

Request

1.Interface address=>HTTP

http://ip:port/path/

DEMO如下:

POST http://127.0.0.1:9008/login/{bizType} # login
POST http://127.0.0.1:9008/register/{bizType} # register
POST http://127.0.0.1:9008/logout # logout
POST http://127.0.0.1:9008/global/{bizType} # other request
...

Request method: POST

1.2 Request

Request header information
Request body information, transmitted in the form of content-type=application/json

1.2.1 Header Request Parameters

parameter
type
required
describe

companyId

long

Required

System unique company identifier

trace

String

Required

Global link unique identifier

timestamp

long

Required

Timestamp, milliseconds

version

String

Not required

Interface version number

group

String

Not required

Interface Grouping

lang

String

Not required

Language information, default is zh-CN

token

String

Not required

Token information, required after logging in

1.2.2 Request Body Parameters

parameter
type
required
describe

bizBody

JSON

Required

Request message body,JSON

1.2 Interface address=>websocket

ws://ip:port/path/ws

The DEMO is as follows:

ws://127.0.0.1:9008/ws

Pass in parameters:

parameter
type
required
describe

header

JSON

Required

Consistent with http

body

JSON

Required

Consistent with http

The DEMO is as follows:

{
  "header": {
    "trace": "trace",
	"token": "token",
    "bizType": "customer.CustomerWebApiService.login",
    "version": "0.0.1",
	"group": "",
    "companyId": 11,
	"timestamp": 11111131331,
	"lang":"zh-CN"
  },
  "body": {
    "type": 3,
    "loginName": "139"
  }
}

The heartbeat format is as follows: bizType is fixed to ping

{
  "header": {
    "trace": "trace",
	"token": "token",
    "bizType": "ping",
	"sendTime":1617246557505,
	"lang":"zh-CN",
	"timestamp": 11111131331
  }
}

The format of the heartbeat return message body is as follows: bizType is fixed to pong

{
  "trace": "Original parameters returned",
  "token": "Original parameters returned",
  "bizType": "pong",
  "sendTime": 1617678792458,
  "lang": "zh-CN"
}

Return parameter:

parameter
type
describe

code

String

System general return code. 0-success, other exceptions

msg

String

returned messages

bizCode

String

Module identification code

tm

Long

Processing time (milliseconds)

trace

String

Global link flag information

msgParams

String

Returns the placeholder parameter string in the description. Multiple parameters are separated by ,

data

Object

Data body, unified return of each business response information, return bizType in case of exception

PreviousSignNextLimit

Last updated 11 months ago