# community.gifthood.feed.getListingExchange

> Published by [gifthood.community](https://lexicon.garden/identity/did:plc:7prvtl4j6wsfmkrfrnwknuxj)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.feed.getListingExchange)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.feed.getListingExchange/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.feed.getListingExchange/examples)

## Definitions

### `community.gifthood.feed.getListingExchange`

**Type**: `query`

The active exchange for a listing, if any — AppView-derived from community.gifthood.exchange + exchangeResponse records. Unpublished method; served by the gifthood AppView.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `rkey` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `exchange` | `ref` → `community.gifthood.feed.defs#exchangeView` | No |  |

## Raw Schema

```json
{
  "id": "community.gifthood.feed.getListingExchange",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "exchange": {
              "ref": "community.gifthood.feed.defs#exchangeView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did",
          "rkey"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          },
          "rkey": {
            "type": "string"
          }
        }
      },
      "description": "The active exchange for a listing, if any — AppView-derived from community.gifthood.exchange + exchangeResponse records. Unpublished method; served by the gifthood AppView."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
