Get Server Time
API Description
Retrieves the current server time. This endpoint is useful for synchronizing client applications with the server time and can be used for timestamp validation when generating API signatures.
HTTP Request
GET /v4/public/mm/serverTimeRequest Parameters
N/A
N/A
N/A
No parameters required
Response Parameters
data
int64
Server time in Unix timestamp format (milliseconds)
msg
string
Response message (empty on success)
code
number
Response code (0 for success)
requestId
string
Request ID for tracking
Authentication
This endpoint requires API authentication. See Quick Start Guide for detailed authentication instructions.
Required Headers
X-ACCESS-KEY: [your_api_key]
X-ACCESS-SIGN: [signature]
X-ACCESS-TIMESTAMP: [timestamp]
X-ACCESS-PASSPHRASE: [your_passphrase]Request Example
Python (requests)
JavaScript (Fetch)
cURL
Response Example
Success Response
Error Response
Notes
Authentication required: This endpoint requires API authentication using HMAC-SHA256 signature
Time format: Returns Unix timestamp in milliseconds (not seconds)
Use case:
Synchronize client clock with server time
Validate timestamp accuracy for API signature generation
Calculate time differences for request expiration checks
Response format: The
datafield contains the timestamp as a number (int64)Example usage: Use this timestamp to generate the
X-ACCESS-TIMESTAMPheader for authenticated requestsConversion:
Milliseconds:
datavalue directlySeconds:
data / 1000ISO 8601 format: Convert using your programming language's datetime library
Signature generation: See Quick Start Guide for detailed signature generation instructions
Time window: Requests are valid within 30 seconds of the timestamp
Rate limit: 120 requests per minute
Success response has
code: 0(not 200)
Last updated