Trade (Futures)

Documentation on interacting with Bitget's Futures Trading & Order API functions through the PENDAX Javascript SDK.

Place Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#place-orderarrow-up-right

Function name:

placeOrderFutures(options)

Usage:

import { createExchange } from "./exchanges/exchange.js";

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt",
      testnet: "false"
});

async function placeOrderFutures(exchange, options) {
    try {
        let result = await exchange.placeOrderFutures(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await placeOrderFutures(myBitgetAccount, 
    {
        symbol: "BTCUSDT_UMCBL",
        marginCoin: "USDT",
        size: "0.01",
        side: "open_long",
        orderType: "market"
    });

Batch Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#batch-orderarrow-up-right

Function name:

Usage:

Cancel Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#cancel-orderarrow-up-right

Function name:

Usage:

Batch Cancel Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#batch-cancel-orderarrow-up-right

Function name:

Usage:

Cancel All Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#cancel-all-orderarrow-up-right

Function name:

Usage:

Get Open Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-open-orderarrow-up-right

Function name:

Usage:

Get All Open Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-all-open-orderarrow-up-right

Function name:

Usage:

Get History Orders

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-history-ordersarrow-up-right

Function name:

Usage:

Get ProductType History Orders

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-producttype-history-ordersarrow-up-right

Function name:

Usage:

Get Order Details

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-order-detailsarrow-up-right

Function name:

Usage:

Get Order Fill Details

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-order-fill-detailarrow-up-right

Function name:

Usage:

Get ProductType Order Fill Details

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-producttype-order-fill-detailarrow-up-right

Function name:

Usage:

circle-exclamation

Place Plan Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#place-plan-orderarrow-up-right

Function name:

Usage:

Modify Plan Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#modify-plan-orderarrow-up-right

Function name:

Usage:

Modify Plan Order TPSL

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#modify-plan-order-tpslarrow-up-right

Function name:

Usage:

Place Stop Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#place-stop-orderarrow-up-right

Function name:

Usage:

Place Trailing Stop Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#place-trailing-stop-orderarrow-up-right

circle-exclamation

Function name:

Usage:

Place Position TPSL

circle-exclamation
circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#place-position-tpslarrow-up-right

Function name:

Usage:

Modify Stop Order

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#modify-stop-orderarrow-up-right

Function name:

Usage:

Cancel Plan Order TPSL

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#cancel-plan-order-tpslarrow-up-right

Function name:

Usage:

Cancel All Trigger Order TPSL

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#cancel-all-trigger-order-tpslarrow-up-right

Function name:

Usage:

Get Plan Order TPSL List

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-plan-order-tpsl-listarrow-up-right

Function name:

Usage:

Get History Plan Orders TPSL

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-history-plan-orders-tpslarrow-up-right

Function name:

Usage:

Last updated