#2312·freqtrade

Binance Margin Orders

Author: fabohaxCreated Sep 27, 2019Updated Mar 26, 2026
LabelsEnhancementNon-spot

Issue searched

Yes

Environment

  • CCXT version: 1.18.1187
  • Branch: Master

Issue:

CCXT has already upgraded Binance Margin orders and there is not a configuration to use it on freqtrade bot. I know that will be too much code to implement if we add a especifical configuration for this exchange but it will be great if we can found a way to give the opportunity to change the request for this type of orders because, maybe, it's the few change that we must do. To create a margin order it seems that is just send the request to a 'sapi' direction instead of a 'api' direction but i don't know how to do that, I'm searching. It 'll helpful if we talk about it in this thread.

Relevant code exceptions or logs:

CCXT Binance Margin upgrade: https://github.com/ccxt/ccxt/commit/3ec2d48212efea7aa9c25c501934a18c944ab1a3

Binance Margin Documentation: https://github.com/binance-exchange/binance-official-api-docs/blob/master/margin-api.md

Related Issues

#447