> For the complete documentation index, see [llms.txt](https://www.pionex.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pionex.com/docs/api-docs/bot-api/signal.md).

# Signal

Custom signal listener (private)

## Push custom trading signal

> Push a custom trading signal to drive smart copy orders. Weight: 1.\
> \
> \*\*Requires \`Enable reading\` permission.\*\* Signal sending must additionally be enabled for your account — contact \[<open@pionex.com>]\(mailto:<open@pionex.com>) to request access.<br>

```json
{"openapi":"3.0.3","info":{"title":"Pionex Bot Open API","version":"1.0.0"},"tags":[{"name":"Signal","description":"Custom signal listener (private)"}],"servers":[{"url":"https://api.pionex.com","description":"Production"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"PIONEX-KEY","description":"API Key authentication. Requires two headers:\n- `PIONEX-KEY`: Your API Key\n- `PIONEX-SIGNATURE`: HMAC SHA256 hex signature\n\nAnd a `timestamp` query parameter (milliseconds).\n"}},"parameters":{"Timestamp":{"name":"timestamp","in":"query","required":true,"description":"Current timestamp in milliseconds (valid range +/- 20 seconds)","schema":{"type":"integer","format":"int64"}}},"schemas":{"SignalListenerRequest":{"type":"object","required":["signalType","signalParam","base","quote","time","price","data"],"properties":{"signalType":{"type":"string","description":"Signal type identifier (ASCII, max 1000 chars)"},"signalParam":{"type":"string","description":"Signal parameters (ASCII, max 5000 chars)"},"base":{"type":"string","description":"Base currency (e.g. BTC)"},"quote":{"type":"string","description":"Quote currency (e.g. USDT)"},"time":{"type":"string","format":"date-time","description":"Signal trigger time (RFC3339)"},"price":{"type":"string","description":"Price at signal trigger time (ASCII, max 30 chars)"},"data":{"$ref":"#/components/schemas/SignalListenerData"}}},"SignalListenerData":{"type":"object","required":["action","position_size","contracts"],"properties":{"action":{"type":"string","description":"Trading action","enum":["buy","sell"]},"position_size":{"type":"string","description":"Position size as a ratio or absolute value"},"contracts":{"type":"string","description":"Number of contracts"},"direction":{"type":"string","description":"Optional trading direction hint"}}},"BaseResponse":{"type":"object","properties":{"result":{"type":"boolean","description":"Request success indicator"},"timestamp":{"type":"integer","format":"int64","description":"Response timestamp in milliseconds"}}},"ErrorResponse":{"type":"object","properties":{"result":{"type":"boolean"},"code":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Human-readable error message"},"timestamp":{"type":"integer","format":"int64"}}}},"responses":{"BadRequest":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/api/v1/bot/signal/listener":{"post":{"tags":["Signal"],"summary":"Push custom trading signal","description":"Push a custom trading signal to drive smart copy orders. Weight: 1.\n\n**Requires `Enable reading` permission.** Signal sending must additionally be enabled for your account — contact [open@pionex.com](mailto:open@pionex.com) to request access.\n","operationId":"signalListener","parameters":[{"$ref":"#/components/parameters/Timestamp"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalListenerRequest"}}}},"responses":{"200":{"description":"Signal received successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.pionex.com/docs/api-docs/bot-api/signal.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
