# otp.Source.to_graph

#### Source.to_graph(symbols=None, start=None, end=None, , add_passthrough=True)

Construct an `onetick.query.GraphQuery` object.

* **Parameters:**
  * **symbols** -- symbols query to add to otq.GraphQuery
  * **start** ([`otp.datetime`](https://docs.pip.distribution.sol.onetick.com/api/datetime/dt.html.md#onetick.py.datetime)) -- start time of a query
  * **end** ([`otp.datetime`](https://docs.pip.distribution.sol.onetick.com/api/datetime/dt.html.md#onetick.py.datetime)) -- end time of a query
  * **add_passthrough** ([*bool*](https://docs.python.org/3/builtins/functions.html#bool)) -- add additional `onetick.query.Passthrough` event processor to the end of a resulted graph
* **Return type:**
  otq.GraphQuery

#### SEE ALSO
[`render()`](https://docs.pip.distribution.sol.onetick.com/api/source/debugs/render.html.md#onetick.py.Source.render)
