-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set Spot asset type and include multiple types within the same asset #150
Comments
If you need to execute your order on spot or dynamically compute a value from the market depth, you can input the spot asset as well. The custom data integration example demonstrates how to work with data that is not directly from the trading asset, such as on-chain data or news. Additionally, adding the full asset data can slow down backtesting because it requires replaying tick-by-tick data. If you only need specific values from spot, the example shows a much faster approach. Also, it may be confusing, but Please see the following example.
|
Thanks |
Can
Asset Type
be set tospot
? I understand from the documentation that we can integrate spot data by integrating custom data, but I believe setting the asset type withspot_asset(1.0)
would be more elegant.Also, is there a way to set different asset types within the same asset? For instance, how can I include
spot
andlinear
for btcusdt?The text was updated successfully, but these errors were encountered: