Instructions to use misbah-dev/trade-parse-qlora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use misbah-dev/trade-parse-qlora with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir trade-parse-qlora misbah-dev/trade-parse-qlora
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "yo grab me some HDFC bank if it dips under 1650, sell it off once it hits 1800"}, {"role": "assistant", "content": "{\"symbol\": \"HDFC\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 1650, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 1800, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Not sure but maybe pick up TCS around 3400 support, target 3650 exit"}, {"role": "assistant", "content": "{\"symbol\": \"TCS\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 3400, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 3650, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Long ICICI Bank below 950, short covering above 1100. Futures trade."}, {"role": "assistant", "content": "{\"symbol\": \"ICICIBANK\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 950, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 1100, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "buy reliace shrs blow 2750, sel above 2950"}, {"role": "assistant", "content": "{\"symbol\": \"RELIANCE\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 2750, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 2950, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "tatasteel - entry 145 buy, exit 165 sel, delivry"}, {"role": "assistant", "content": "{\"symbol\": \"TATASTEEL\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 145, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 165, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Buy INFY.NS if under 1550, sell if over 1750"}, {"role": "assistant", "content": "{\"symbol\": \"INFY\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 1550, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 1750, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "purchase Wipro Ltd shares below 420, offload above 480"}, {"role": "assistant", "content": "{\"symbol\": \"WIPRO\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 420, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 480, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Just sell my Axis Bank position if it crosses 1200"}, {"role": "assistant", "content": "{\"symbol\": \"AXISBANK\", \"action_conditions\": [{\"trigger\": \"price_above\", \"value\": 1200, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Add Maruti to portfolio under 11000, no rush on exit"}, {"role": "assistant", "content": "{\"symbol\": \"MARUTI\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 11000, \"action\": \"buy\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "SBI below 800 buy, above 900 sell — keep it simple"}, {"role": "assistant", "content": "{\"symbol\": \"SBIN\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 800, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 900, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Get Sun Pharma cheap under 1700, let it ride till 1900"}, {"role": "assistant", "content": "{\"symbol\": \"SUNPHARMA\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 1700, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 1900, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Sell Bajaj Finance above 7200, but only after buying below 6800"}, {"role": "assistant", "content": "{\"symbol\": \"BAJFINANCE\", \"action_conditions\": [{\"trigger\": \"price_above\", \"value\": 7200, \"action\": \"sell\"}, {\"trigger\": \"price_below\", \"value\": 6800, \"action\": \"buy\"}], \"strategy_type\": null}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Buy ONGC when it's cheap, sell when it's expensive"}, {"role": "assistant", "content": "{\"error\": \"missing_price_condition\", \"symbol\": \"ONGC\", \"message\": \"No numeric price condition found.\"}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "buy this stock below 500, sell above 600, futures"}, {"role": "assistant", "content": "{\"error\": \"missing_symbol\", \"symbol\": null, \"message\": \"No symbol or company name found.\"}"}]} | |
| {"messages": [{"role": "system", "content": "Convert the user trade instruction into JSON only. If the instruction has enough information, use exactly this success schema: {\"symbol\": str, \"action_conditions\": [{\"trigger\": \"price_below\"|\"price_above\", \"value\": number, \"action\": \"buy\"|\"sell\"}], \"strategy_type\": \"intraday\"|null}. If required information is missing or ambiguous, use exactly this error schema: {\"error\": \"missing_symbol\"|\"ambiguous_symbol\"|\"missing_price_condition\"|\"missing_action\"|\"unsupported_strategy\", \"symbol\": str|null, \"message\": str}. Rules: if strategy type is not mentioned, set strategy_type to null. Only intraday is supported as a strategy_type; futures, delivery, and swing should not be copied into strategy_type. If no numeric price condition is present, return missing_price_condition. If no symbol/company is present, return missing_symbol. If no buy/sell style action is present, return missing_action. Do not include markdown, explanations, or extra keys."}, {"role": "user", "content": "Provided HCLTech falls under 1450, buy; otherwise if it climbs past 1600, sell — swing trade"}, {"role": "assistant", "content": "{\"symbol\": \"HCLTECH\", \"action_conditions\": [{\"trigger\": \"price_below\", \"value\": 1450, \"action\": \"buy\"}, {\"trigger\": \"price_above\", \"value\": 1600, \"action\": \"sell\"}], \"strategy_type\": null}"}]} | |