657 lines
25 KiB
HTML
657 lines
25 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<title>Truncgil Finance Documentation</title>
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
|
|
|
|
<link rel="stylesheet" href="../docs/css/theme-default.style.css" media="screen">
|
|
<link rel="stylesheet" href="../docs/css/theme-default.print.css" media="print">
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js"></script>
|
|
|
|
<link rel="stylesheet"
|
|
href="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/styles/obsidian.min.css">
|
|
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/highlight.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jets/0.14.1/jets.min.js"></script>
|
|
|
|
<style id="language-style">
|
|
/* starts out as display none and is replaced with js later */
|
|
body .content .bash-example code { display: none; }
|
|
body .content .javascript-example code { display: none; }
|
|
</style>
|
|
|
|
<script>
|
|
var tryItOutBaseUrl = "http://localhost:8000";
|
|
var useCsrf = Boolean();
|
|
var csrfUrl = "/sanctum/csrf-cookie";
|
|
</script>
|
|
<script src="../docs/js/tryitout-4.39.0.js"></script>
|
|
|
|
<script src="../docs/js/theme-default-4.39.0.js"></script>
|
|
|
|
</head>
|
|
|
|
<body data-languages="["bash","javascript"]">
|
|
|
|
<a href="#" id="nav-button">
|
|
<span>
|
|
MENU
|
|
<img src="../docs/images/navbar.png" alt="navbar-image"/>
|
|
</span>
|
|
</a>
|
|
<div class="tocify-wrapper">
|
|
|
|
<div class="lang-selector">
|
|
<button type="button" class="lang-button" data-language-name="bash">bash</button>
|
|
<button type="button" class="lang-button" data-language-name="javascript">javascript</button>
|
|
</div>
|
|
|
|
<div class="search">
|
|
<input type="text" class="search" id="input-search" placeholder="Search">
|
|
</div>
|
|
|
|
<div id="toc">
|
|
<ul id="tocify-header-truncgil-finance" class="tocify-header">
|
|
<li class="tocify-item level-1" data-unique="truncgil-finance">
|
|
<a href="#truncgil-finance">Truncgil Finance</a>
|
|
</li>
|
|
</ul>
|
|
<ul id="tocify-header-authenticating-requests" class="tocify-header">
|
|
<li class="tocify-item level-1" data-unique="authenticating-requests">
|
|
<a href="#authenticating-requests">Authenticating requests</a>
|
|
</li>
|
|
</ul>
|
|
<ul id="tocify-header-endpoints" class="tocify-header">
|
|
<li class="tocify-item level-1" data-unique="endpoints">
|
|
<a href="#endpoints">Endpoints</a>
|
|
</li>
|
|
<ul id="tocify-subheader-endpoints" class="tocify-subheader">
|
|
<li class="tocify-item level-2" data-unique="endpoints-GETapi-currency-rates">
|
|
<a href="#endpoints-GETapi-currency-rates">GET api/currency-rates</a>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
|
|
<ul class="toc-footer" id="toc-footer">
|
|
<li style="padding-bottom: 5px;"><a href="../docs/collection.json">View Postman collection</a></li>
|
|
<li style="padding-bottom: 5px;"><a href="../docs/openapi.yaml">View OpenAPI spec</a></li>
|
|
<li><a href="http://github.com/knuckleswtf/scribe">Documentation powered by Scribe ✍</a></li>
|
|
</ul>
|
|
|
|
<ul class="toc-footer" id="last-updated">
|
|
<li>Last updated: January 17, 2025</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="page-wrapper">
|
|
<div class="dark-box"></div>
|
|
<div class="content">
|
|
<h1 id="truncgil-finance">Truncgil Finance</h1>
|
|
<aside>
|
|
<strong>Base URL</strong>: <code>http://localhost:8000</code>
|
|
</aside>
|
|
<p>This documentation aims to provide all the information you need to work with our API.</p>
|
|
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
|
|
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
|
|
|
|
<h1 id="authenticating-requests">Authenticating requests</h1>
|
|
<p>This API is not authenticated.</p>
|
|
|
|
<h1 id="endpoints">Endpoints</h1>
|
|
|
|
|
|
|
|
<h2 id="endpoints-GETapi-currency-rates">GET api/currency-rates</h2>
|
|
|
|
<p>
|
|
</p>
|
|
|
|
|
|
|
|
<span id="example-requests-GETapi-currency-rates">
|
|
<blockquote>Example request:</blockquote>
|
|
|
|
|
|
<div class="bash-example">
|
|
<pre><code class="language-bash">curl --request GET \
|
|
--get "http://localhost:8000/api/currency-rates" \
|
|
--header "Content-Type: application/json" \
|
|
--header "Accept: application/json"</code></pre></div>
|
|
|
|
|
|
<div class="javascript-example">
|
|
<pre><code class="language-javascript">const url = new URL(
|
|
"http://localhost:8000/api/currency-rates"
|
|
);
|
|
|
|
const headers = {
|
|
"Content-Type": "application/json",
|
|
"Accept": "application/json",
|
|
};
|
|
|
|
fetch(url, {
|
|
method: "GET",
|
|
headers,
|
|
}).then(response => response.json());</code></pre></div>
|
|
|
|
</span>
|
|
|
|
<span id="example-responses-GETapi-currency-rates">
|
|
<blockquote>
|
|
<p>Example response (200):</p>
|
|
</blockquote>
|
|
<details class="annotation">
|
|
<summary style="cursor: pointer;">
|
|
<small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small>
|
|
</summary>
|
|
<pre><code class="language-http">cache-control: no-cache, private
|
|
content-type: application/json
|
|
access-control-allow-origin: *
|
|
</code></pre></details> <pre>
|
|
|
|
<code class="language-json" style="max-height: 300px;">{
|
|
"Update_Date": "2025-01-17 18:33:23",
|
|
"gram-altin": {
|
|
"Type": "Currency",
|
|
"Change": "0.24"
|
|
},
|
|
"USD": {
|
|
"Type": "Currency",
|
|
"Change": "0.39",
|
|
"Buying": "35.5568",
|
|
"Selling": "35.5729"
|
|
},
|
|
"EUR": {
|
|
"Type": "Currency",
|
|
"Change": "-0.10",
|
|
"Buying": "36.5659",
|
|
"Selling": "36.5827"
|
|
},
|
|
"GBP": {
|
|
"Type": "Currency",
|
|
"Change": "-0.26",
|
|
"Buying": "43.2899",
|
|
"Selling": "43.3139"
|
|
},
|
|
"XU100": {
|
|
"Type": "Currency",
|
|
"Change": "1.13"
|
|
},
|
|
"bitcoin": {
|
|
"Type": "Currency",
|
|
"Change": "5.18"
|
|
},
|
|
"gumus": {
|
|
"Type": "Currency",
|
|
"Change": "-1.15"
|
|
},
|
|
"BRENT": {
|
|
"Type": "Currency",
|
|
"Change": "-0.40"
|
|
},
|
|
"CHF": {
|
|
"Buying": "38.8684",
|
|
"Type": "Currency",
|
|
"Selling": "38.8987",
|
|
"Change": "0.00"
|
|
},
|
|
"CAD": {
|
|
"Buying": "24.6017",
|
|
"Type": "Currency",
|
|
"Selling": "24.6179",
|
|
"Change": "0.01"
|
|
},
|
|
"RUB": {
|
|
"Buying": "0.3469",
|
|
"Type": "Currency",
|
|
"Selling": "0.3471",
|
|
"Change": "1.49"
|
|
},
|
|
"AED": {
|
|
"Buying": "9.6803",
|
|
"Type": "Currency",
|
|
"Selling": "9.6855",
|
|
"Change": "0.39"
|
|
},
|
|
"AUD": {
|
|
"Buying": "22.0523",
|
|
"Type": "Currency",
|
|
"Selling": "22.0694",
|
|
"Change": "0.29"
|
|
},
|
|
"DKK": {
|
|
"Buying": "4.9006",
|
|
"Type": "Currency",
|
|
"Selling": "4.9039",
|
|
"Change": "0.23"
|
|
},
|
|
"SEK": {
|
|
"Buying": "3.1793",
|
|
"Type": "Currency",
|
|
"Selling": "3.1830",
|
|
"Change": "0.13"
|
|
},
|
|
"NOK": {
|
|
"Buying": "3.1085",
|
|
"Type": "Currency",
|
|
"Selling": "3.1113",
|
|
"Change": "-0.25"
|
|
},
|
|
"JPY": {
|
|
"Buying": 0.2275,
|
|
"Type": "Currency",
|
|
"Selling": 0.2279,
|
|
"Change": -0.005699999999999999
|
|
},
|
|
"KWD": {
|
|
"Buying": "115.0539",
|
|
"Type": "Currency",
|
|
"Selling": "115.4686",
|
|
"Change": "0.30"
|
|
},
|
|
"ZAR": {
|
|
"Buying": "1.8980",
|
|
"Type": "Currency",
|
|
"Selling": "1.8998",
|
|
"Change": "0.94"
|
|
},
|
|
"BHD": {
|
|
"Buying": "94.3401",
|
|
"Type": "Currency",
|
|
"Selling": "94.3829",
|
|
"Change": "0.40"
|
|
},
|
|
"LYD": {
|
|
"Buying": "7.1896",
|
|
"Type": "Currency",
|
|
"Selling": "7.1928",
|
|
"Change": "-1.15"
|
|
},
|
|
"SAR": {
|
|
"Buying": "9.4641",
|
|
"Type": "Currency",
|
|
"Selling": "9.4934",
|
|
"Change": "0.39"
|
|
},
|
|
"IQD": {
|
|
"Buying": "0.0271",
|
|
"Type": "Currency",
|
|
"Selling": "0.0272",
|
|
"Change": "0.39"
|
|
},
|
|
"ILS": {
|
|
"Buying": "9.9769",
|
|
"Type": "Currency",
|
|
"Selling": "9.9815",
|
|
"Change": "1.93"
|
|
},
|
|
"IRR": {
|
|
"Buying": "0.0008",
|
|
"Type": "Currency",
|
|
"Selling": "0.0008",
|
|
"Change": "0.00"
|
|
},
|
|
"INR": {
|
|
"Buying": "0.4106",
|
|
"Type": "Currency",
|
|
"Selling": "0.4108",
|
|
"Change": "0.41"
|
|
},
|
|
"MXN": {
|
|
"Buying": "1.7147",
|
|
"Type": "Currency",
|
|
"Selling": "1.7154",
|
|
"Change": "0.90"
|
|
},
|
|
"HUF": {
|
|
"Buying": "0.0886",
|
|
"Type": "Currency",
|
|
"Selling": "0.0886",
|
|
"Change": "0.21"
|
|
},
|
|
"NZD": {
|
|
"Buying": "19.8808",
|
|
"Type": "Currency",
|
|
"Selling": "19.8898",
|
|
"Change": "0.13"
|
|
},
|
|
"BRL": {
|
|
"Buying": "5.8608",
|
|
"Type": "Currency",
|
|
"Selling": "5.8634",
|
|
"Change": "0.19"
|
|
},
|
|
"IDR": {
|
|
"Buying": "0.0022",
|
|
"Type": "Currency",
|
|
"Selling": "0.0022",
|
|
"Change": "0.42"
|
|
},
|
|
"CZK": {
|
|
"Buying": "1.4472",
|
|
"Type": "Currency",
|
|
"Selling": "1.4479",
|
|
"Change": "0.33"
|
|
},
|
|
"PLN": {
|
|
"Buying": "8.5816",
|
|
"Type": "Currency",
|
|
"Selling": "8.5854",
|
|
"Change": "0.35"
|
|
},
|
|
"RON": {
|
|
"Buying": "7.3452",
|
|
"Type": "Currency",
|
|
"Selling": "7.3548",
|
|
"Change": "0.22"
|
|
},
|
|
"CNY": {
|
|
"Buying": "4.8533",
|
|
"Type": "Currency",
|
|
"Selling": "4.8568",
|
|
"Change": "0.49"
|
|
},
|
|
"ARS": {
|
|
"Buying": "0.0341",
|
|
"Type": "Currency",
|
|
"Selling": "0.0341",
|
|
"Change": "0.34"
|
|
},
|
|
"ALL": {
|
|
"Buying": "0.3728",
|
|
"Type": "Currency",
|
|
"Selling": "0.3730",
|
|
"Change": "0.47"
|
|
},
|
|
"AZN": {
|
|
"Buying": "20.9158",
|
|
"Type": "Currency",
|
|
"Selling": "20.9252",
|
|
"Change": "0.39"
|
|
},
|
|
"BAM": {
|
|
"Buying": "18.7299",
|
|
"Type": "Currency",
|
|
"Selling": "18.7384",
|
|
"Change": "-6.31"
|
|
},
|
|
"CLP": {
|
|
"Buying": "0.0353",
|
|
"Type": "Currency",
|
|
"Selling": "0.0353",
|
|
"Change": "0.95"
|
|
},
|
|
"COP": {
|
|
"Buying": "0.0082",
|
|
"Type": "Currency",
|
|
"Selling": "0.0082",
|
|
"Change": "0.47"
|
|
},
|
|
"CRC": {
|
|
"Buying": "0.0709",
|
|
"Type": "Currency",
|
|
"Selling": "0.0709",
|
|
"Change": "0.55"
|
|
},
|
|
"DZD": {
|
|
"Buying": "0.2616",
|
|
"Type": "Currency",
|
|
"Selling": "0.2617",
|
|
"Change": "0.60"
|
|
},
|
|
"EGP": {
|
|
"Buying": "0.7054",
|
|
"Type": "Currency",
|
|
"Selling": "0.7058",
|
|
"Change": "0.38"
|
|
},
|
|
"HKD": {
|
|
"Buying": "4.5675",
|
|
"Type": "Currency",
|
|
"Selling": "4.5695",
|
|
"Change": "0.42"
|
|
},
|
|
"ISK": {
|
|
"Buying": "0.2513",
|
|
"Type": "Currency",
|
|
"Selling": "0.2515",
|
|
"Change": "-0.04"
|
|
},
|
|
"JOD": {
|
|
"Buying": "50.1436",
|
|
"Type": "Currency",
|
|
"Selling": "50.1663",
|
|
"Change": "0.42"
|
|
},
|
|
"KRW": {
|
|
"Buying": "0.0244",
|
|
"Type": "Currency",
|
|
"Selling": "0.0244",
|
|
"Change": "0.39"
|
|
},
|
|
"KZT": {
|
|
"Buying": "0.0670",
|
|
"Type": "Currency",
|
|
"Selling": "0.0670",
|
|
"Change": "0.35"
|
|
},
|
|
"LBP": {
|
|
"Buying": "0.0004",
|
|
"Type": "Currency",
|
|
"Selling": "0.0004",
|
|
"Change": "0.44"
|
|
},
|
|
"LKR": {
|
|
"Buying": "0.1199",
|
|
"Type": "Currency",
|
|
"Selling": "0.1200",
|
|
"Change": "0.38"
|
|
},
|
|
"MAD": {
|
|
"Buying": "3.5377",
|
|
"Type": "Currency",
|
|
"Selling": "3.5393",
|
|
"Change": "0.37"
|
|
},
|
|
"MDL": {
|
|
"Buying": "1.8828",
|
|
"Type": "Currency",
|
|
"Selling": "1.8837",
|
|
"Change": "-0.21"
|
|
},
|
|
"MKD": {
|
|
"Buying": "0.5944",
|
|
"Type": "Currency",
|
|
"Selling": "0.5947",
|
|
"Change": "0.27"
|
|
},
|
|
"MYR": {
|
|
"Buying": "7.8910",
|
|
"Type": "Currency",
|
|
"Selling": "7.8946",
|
|
"Change": "0.31"
|
|
},
|
|
"OMR": {
|
|
"Buying": "92.3577",
|
|
"Type": "Currency",
|
|
"Selling": "92.3995",
|
|
"Change": "0.39"
|
|
},
|
|
"PEN": {
|
|
"Buying": "9.4641",
|
|
"Type": "Currency",
|
|
"Selling": "9.4684",
|
|
"Change": "0.41"
|
|
},
|
|
"PHP": {
|
|
"Buying": "0.6083",
|
|
"Type": "Currency",
|
|
"Selling": "0.6086",
|
|
"Change": "0.63"
|
|
},
|
|
"PKR": {
|
|
"Buying": "0.1274",
|
|
"Type": "Currency",
|
|
"Selling": "0.1277",
|
|
"Change": "0.39"
|
|
},
|
|
"QAR": {
|
|
"Buying": "9.7614",
|
|
"Type": "Currency",
|
|
"Selling": "9.7771",
|
|
"Change": "0.39"
|
|
},
|
|
"RSD": {
|
|
"Buying": "0.3119",
|
|
"Type": "Currency",
|
|
"Selling": "0.3128",
|
|
"Change": "-0.06"
|
|
},
|
|
"SGD": {
|
|
"Buying": "25.9937",
|
|
"Type": "Currency",
|
|
"Selling": "26.0055",
|
|
"Change": "0.31"
|
|
},
|
|
"SYP": {
|
|
"Buying": "0.0027",
|
|
"Type": "Currency",
|
|
"Selling": "0.0027",
|
|
"Change": "0.39"
|
|
},
|
|
"THB": {
|
|
"Buying": "1.0319",
|
|
"Type": "Currency",
|
|
"Selling": "1.0323",
|
|
"Change": "0.72"
|
|
},
|
|
"TWD": {
|
|
"Buying": "1.0808",
|
|
"Type": "Currency",
|
|
"Selling": "1.0812",
|
|
"Change": "0.51"
|
|
},
|
|
"UAH": {
|
|
"Buying": "0.8428",
|
|
"Type": "Currency",
|
|
"Selling": "0.8432",
|
|
"Change": "0.23"
|
|
},
|
|
"UYU": {
|
|
"Buying": "0.8068",
|
|
"Type": "Currency",
|
|
"Selling": "0.8072",
|
|
"Change": "0.23"
|
|
},
|
|
"GEL": {
|
|
"Buying": "12.5200",
|
|
"Type": "Currency",
|
|
"Selling": "12.5257",
|
|
"Change": "-3.50"
|
|
},
|
|
"TND": {
|
|
"Buying": "11.0700",
|
|
"Type": "Currency",
|
|
"Selling": "11.0750",
|
|
"Change": "0.39"
|
|
},
|
|
"BGN": {
|
|
"Buying": "18.6226",
|
|
"Type": "Currency",
|
|
"Selling": "18.7779",
|
|
"Change": "-0.10"
|
|
}
|
|
}</code>
|
|
</pre>
|
|
</span>
|
|
<span id="execution-results-GETapi-currency-rates" hidden>
|
|
<blockquote>Received response<span
|
|
id="execution-response-status-GETapi-currency-rates"></span>:
|
|
</blockquote>
|
|
<pre class="json"><code id="execution-response-content-GETapi-currency-rates"
|
|
data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre>
|
|
</span>
|
|
<span id="execution-error-GETapi-currency-rates" hidden>
|
|
<blockquote>Request failed with error:</blockquote>
|
|
<pre><code id="execution-error-message-GETapi-currency-rates">
|
|
|
|
Tip: Check that you're properly connected to the network.
|
|
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
|
|
You can check the Dev Tools console for debugging information.</code></pre>
|
|
</span>
|
|
<form id="form-GETapi-currency-rates" data-method="GET"
|
|
data-path="api/currency-rates"
|
|
data-authed="0"
|
|
data-hasfiles="0"
|
|
data-isarraybody="0"
|
|
autocomplete="off"
|
|
onsubmit="event.preventDefault(); executeTryOut('GETapi-currency-rates', this);">
|
|
<h3>
|
|
Request
|
|
<button type="button"
|
|
style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;"
|
|
id="btn-tryout-GETapi-currency-rates"
|
|
onclick="tryItOut('GETapi-currency-rates');">Try it out ⚡
|
|
</button>
|
|
<button type="button"
|
|
style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;"
|
|
id="btn-canceltryout-GETapi-currency-rates"
|
|
onclick="cancelTryOut('GETapi-currency-rates');" hidden>Cancel 🛑
|
|
</button>
|
|
<button type="submit"
|
|
style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;"
|
|
id="btn-executetryout-GETapi-currency-rates"
|
|
data-initial-text="Send Request 💥"
|
|
data-loading-text="⏱ Sending..."
|
|
hidden>Send Request 💥
|
|
</button>
|
|
</h3>
|
|
<p>
|
|
<small class="badge badge-green">GET</small>
|
|
<b><code>api/currency-rates</code></b>
|
|
</p>
|
|
<h4 class="fancy-heading-panel"><b>Headers</b></h4>
|
|
<div style="padding-left: 28px; clear: unset;">
|
|
<b style="line-height: 2;"><code>Content-Type</code></b>
|
|
|
|
|
|
<input type="text" style="display: none"
|
|
name="Content-Type" data-endpoint="GETapi-currency-rates"
|
|
value="application/json"
|
|
data-component="header">
|
|
<br>
|
|
<p>Example: <code>application/json</code></p>
|
|
</div>
|
|
<div style="padding-left: 28px; clear: unset;">
|
|
<b style="line-height: 2;"><code>Accept</code></b>
|
|
|
|
|
|
<input type="text" style="display: none"
|
|
name="Accept" data-endpoint="GETapi-currency-rates"
|
|
value="application/json"
|
|
data-component="header">
|
|
<br>
|
|
<p>Example: <code>application/json</code></p>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div class="dark-box">
|
|
<div class="lang-selector">
|
|
<button type="button" class="lang-button" data-language-name="bash">bash</button>
|
|
<button type="button" class="lang-button" data-language-name="javascript">javascript</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|