# ByBit Functions

## Create an Exchange Object

Before you can interact with PENDAX functions, you must first create an Exchange object. This exchange object will allow you to interact with PENDAX. You can create one or multiple, and reference them together or individually throughout your code.

#### Example Exchange Object Creation:

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

let bybit_exchange = createExchange({
      exchange: "bybit",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      label: "bybit",
      testnet: "false"
});


```

#### Unauthenticated Exchange Objects

If you are just calling public API endpoints on the exchange and you don't need any authentication to protected endpoints, simply create your exchange object with authenticate set to false and omit the key, secret, passphrase.

{% hint style="info" %}
Authenticated Exchange objects can call private and public endpoints, however, unauthenticated exchange objects may only call public endpoints.
{% endhint %}

#### Example Unauthenticated Exchange Object:

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

let myBybitAccount= createExchange({
      exchange: "bybit",
      authenticate: "false",
      label: "bybit",
      testnet: "false"
});
```

{% hint style="warning" %}
These documents are under development and will be updated shortly with all finalized functions
{% endhint %}

## All Available ByBit Functions

Documentation for each category of functions is broken down into its own subpage in order to make navigating pages simpler and faster. Please use the side navigation to access these sub-pages or click on one of the links below.

{% content-ref url="bybit-functions/account" %}
[account](bybit-functions/account)
{% endcontent-ref %}

{% content-ref url="bybit-functions/asset" %}
[asset](bybit-functions/asset)
{% endcontent-ref %}

{% content-ref url="bybit-functions/institutional-lending" %}
[institutional-lending](bybit-functions/institutional-lending)
{% endcontent-ref %}

{% content-ref url="bybit-functions/market" %}
[market](bybit-functions/market)
{% endcontent-ref %}

{% content-ref url="bybit-functions/position" %}
[position](bybit-functions/position)
{% endcontent-ref %}

{% content-ref url="bybit-functions/spot-leverage-token" %}
[spot-leverage-token](bybit-functions/spot-leverage-token)
{% endcontent-ref %}

{% content-ref url="bybit-functions/spot-margin-trade-normal" %}
[spot-margin-trade-normal](bybit-functions/spot-margin-trade-normal)
{% endcontent-ref %}

{% content-ref url="bybit-functions/spot-margin-trade-uta" %}
[spot-margin-trade-uta](bybit-functions/spot-margin-trade-uta)
{% endcontent-ref %}

{% content-ref url="bybit-functions/trading" %}
[trading](bybit-functions/trading)
{% endcontent-ref %}

{% content-ref url="bybit-functions/user" %}
[user](bybit-functions/user)
{% endcontent-ref %}
