Goldmine
Contracts

Get Contracts

POST
/contracts.v1.Contracts/GetContracts

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/contracts.v1.Contracts/GetContracts" \  -H "Content-Type: application/json" \  -d '{}'
{
  "contracts": [
    {
      "accountGroupId": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "deletedAt": "2019-08-24T14:15:22Z",
      "description": "string",
      "filter": {
        "references": [
          {
            "max": 0.1,
            "metric": "string",
            "min": 0.1,
            "source": "string"
          }
        ]
      },
      "id": "EBESExQVFhcYGRobHB0eHw==",
      "limits": {
        "maxOwnedPerItem": 0,
        "purchaseWindow": {
          "count": 0,
          "days": 0
        },
        "spendWindow": {
          "amountCents": "string",
          "days": 0
        }
      },
      "name": "string",
      "predicate": {
        "filterSet": {
          "filterSetId": "string"
        },
        "group": {
          "condition": "PREDICATE_CONDITION_UNSPECIFIED",
          "rules": [
            {
              "filterSet": {
                "filterSetId": "string"
              },
              "group": {},
              "rule": {
                "field": "PREDICATE_FIELD_UNSPECIFIED",
                "operator": "PREDICATE_OPERATOR_UNSPECIFIED",
                "value": {
                  "boolValue": true,
                  "numberValue": 0.1,
                  "stringListValue": {
                    "values": [
                      "string"
                    ]
                  },
                  "stringValue": "string"
                }
              }
            }
          ]
        },
        "rule": {
          "field": "PREDICATE_FIELD_UNSPECIFIED",
          "operator": "PREDICATE_OPERATOR_UNSPECIFIED",
          "value": {
            "boolValue": true,
            "numberValue": 0.1,
            "stringListValue": {
              "values": [
                "string"
              ]
            },
            "stringValue": "string"
          }
        }
      },
      "snapshot": "string",
      "status": "CONTRACT_STATUS_UNSPECIFIED",
      "strategies": [
        {
          "csfloatAuction": {
            "bidBeforeExpirySeconds": 0,
            "maxConcurrentBids": 0
          },
          "csfloatBuyOrder": {
            "maxOrders": 0,
            "maxPriceCents": 0
          },
          "csfloatOffer": {
            "expiryHours": 0,
            "maxDiscountPct": 0.1,
            "minPriceCents": "string"
          },
          "csfloatScraping": {
            "maxConcurrent": 0,
            "scrapeIntervalMs": "string"
          },
          "csfloatSell": {
            "priceSource": "string",
            "undercutPct": 0.1
          },
          "offerHandling": {
            "autoDecline": true,
            "listingPriceOverridePct": 0.1,
            "minOfferAcceptPct": 0.1
          },
          "saleAccept": {
            "delaySeconds": 0
          },
          "salespanelSell": {
            "ceilingPct": 0.1
          }
        }
      ],
      "type": "CONTRACT_TYPE_UNSPECIFIED",
      "updatedAt": "2019-08-24T14:15:22Z",
      "valuation": {
        "ceilingPriceCents": "string",
        "floorPriceCents": "string",
        "references": [
          {
            "adjustment": 0.1,
            "aggregation": {
              "average": {
                "weighted": true
              },
              "type": "AGGREGATION_TYPE_UNSPECIFIED"
            },
            "lag": {
              "days": 0
            },
            "metric": "string",
            "outlier": {
              "sigma": 0.1
            },
            "percentile": 0,
            "source": "string",
            "window": {
              "count": 0,
              "days": 0,
              "hours": 0
            }
          }
        ],
        "strategy": "VALUATION_STRATEGY_UNSPECIFIED"
      },
      "version": "string",
      "workspaceId": "string"
    }
  ],
  "notFoundIds": [
    "string"
  ]
}
Empty