# otp.Source.to_graph

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

Construct an `onetick.query.GraphQuery` object.

* **Parameters:**
  * **raw** -- 

    #### Deprecated
    Deprecated since version 1.4.17: has no effect
  * **symbols** -- symbols query to add to otq.GraphQuery
  * **start** ([`otp.datetime`](../datetime/dt.md#onetick.py.datetime)) -- start time of a query
  * **end** ([`otp.datetime`](../datetime/dt.md#onetick.py.datetime)) -- end time of a query
  * **add_passthrough** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) -- add additional `onetick.query.Passthrough` event processor to the end of a resulted graph
* **Return type:**
  otq.GraphQuery

#### SEE ALSO
[`render()`](render.md#onetick.py.Source.render)
